Win CD #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Win CD | |
| # on: | |
| # push: | |
| # branches: [ main, develop ] | |
| on: | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
| jobs: | |
| build-windows: | |
| name: Build Windows | |
| runs-on: windows-latest | |
| env: | |
| VCPKG_DEFAULT_TRIPLET: x64-windows | |
| VCPKG_INSTALLATION_ROOT: C:\vcpkg | |
| VCPKG_FEATURE_FLAGS: manifests | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Build | |
| run: | | |
| vcpkg install | |
| mkdir Release | |
| cd Release | |
| cmake .. -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows | |
| cmake --build . --parallel 4 --config Release | |
| - name: Package binary files | |
| run: | | |
| cd Release | |
| 7z a val3dity-win64.zip .\Release\* | |
| - name: Upload binary files as artifact | |
| uses: actions/upload-artifact@main | |
| with: | |
| name: val3dity-win64 | |
| path: Release/val3dity-win64.zip |