cicd: update workflow to use windows-2022 #161
Workflow file for this run
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: Windows CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: windows-2022 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| submodules: true | |
| - name: Create build directory | |
| run: mkdir build | |
| - name: Run CMake | |
| run: cmake -G "Visual Studio 17 2022" -DKITTY_TEST=ON .. | |
| working-directory: ./build | |
| - name: Check Visual Studio installation | |
| run: | | |
| "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -prerelease -products * -requires Microsoft.Component.MSBuild | |
| - name: Build kitty | |
| run: msbuild kitty.sln /t:run_tests | |
| working-directory: ./build | |
| - name: Run tests | |
| run: | | |
| cd build | |
| .\test\Debug\run_tests |