File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,30 +3,33 @@ name: Windows CI
33on :
44 push :
55 branches :
6- - master
6+ - master
77 pull_request :
88 branches :
9- - master
9+ - master
1010
1111jobs :
1212 build :
13- runs-on : windows-2019
13+ runs-on : windows-2022
1414
1515 steps :
16- - uses : actions/checkout@v1
16+ - uses : actions/checkout@v2
1717 with :
1818 submodules : true
1919 - name : Create build directory
2020 run : mkdir build
2121 - name : Run CMake
22- run : cmake -G "Visual Studio 16 2019 " -DKITTY_TEST=ON ..
22+ run : cmake -G "Visual Studio 17 2022 " -DKITTY_TEST=ON ..
2323 working-directory : ./build
24- - name : Build kitty
24+ - name : Check Visual Studio installation
2525 run : |
26- "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" kitty.sln /t:run_tests
26+ & "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -prerelease -products * -requires Microsoft.Component.MSBuild
27+ - name : Setup MSBuild
28+ uses : microsoft/setup-msbuild@v1
29+ - name : Build kitty
30+ run : msbuild kitty.sln /t:run_tests
2731 working-directory : ./build
28- shell : cmd
2932 - name : Run tests
3033 run : |
3134 cd build
32- .\test\Debug\run_tests
35+ .\test\Debug\run_tests
You can’t perform that action at this time.
0 commit comments