Skip to content

Commit ee55cd0

Browse files
authored
Merge pull request #148 from costamag/cicd-update
cicd: update workflow to use windows-2022
2 parents c3aadce + d08803a commit ee55cd0

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

.github/workflows/windows.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,33 @@ name: Windows CI
33
on:
44
push:
55
branches:
6-
- master
6+
- master
77
pull_request:
88
branches:
9-
- master
9+
- master
1010

1111
jobs:
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

0 commit comments

Comments
 (0)