diff options
Diffstat (limited to '.github/workflows/build-windows-2019-cpu.yml')
-rw-r--r-- | .github/workflows/build-windows-2019-cpu.yml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/.github/workflows/build-windows-2019-cpu.yml b/.github/workflows/build-windows-2019-cpu.yml new file mode 100644 index 00000000..13ef6614 --- /dev/null +++ b/.github/workflows/build-windows-2019-cpu.yml @@ -0,0 +1,49 @@ +name: windows-2019-cpu + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: windows-2019 + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + submodules: recursive + + - name: Prepare vcpkg + uses: lukka/run-vcpkg@v3 + with: + vcpkgArguments: protobuf + vcpkgGitCommitId: 6185aa76504a5025f36754324abf307cc776f3da + vcpkgDirectory: ${{ github.workspace }}/vcpkg/ + vcpkgTriplet: x64-windows-static + + # Note that we build with a simplified CMake settings JSON file + - name: Run CMake + uses: lukka/run-cmake@v2 + with: + buildDirectory: ${{ github.workspace }}/build/ + cmakeAppendedArgs: -G Ninja + cmakeListsOrSettingsJson: CMakeSettingsJson + cmakeSettingsJsonPath: ${{ github.workspace }}/CMakeSettingsCI.json + useVcpkgToolchainFile: true + + - name: Run unit tests + working-directory: build/Debug/ + run: ctest + + - name: Print versions + working-directory: build/Debug/ + run: | + .\marian.exe --version + .\marian-decoder.exe --version + .\marian-scorer.exe --version + .\spm_encode.exe --version + |