From d08803ae702a69a850adb793bc98fdeb5e6a9c5b Mon Sep 17 00:00:00 2001 From: Andrea Costamagna Date: Wed, 30 Jul 2025 16:06:56 +0200 Subject: [PATCH] cicd: update windows workflow --- .github/workflows/windows.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 1729318..8bd5a2b 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -3,30 +3,33 @@ name: Windows CI on: push: branches: - - master + - master pull_request: branches: - - master + - master jobs: build: - runs-on: windows-2019 + runs-on: windows-2022 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 with: submodules: true - name: Create build directory run: mkdir build - name: Run CMake - run: cmake -G "Visual Studio 16 2019" -DKITTY_TEST=ON .. + run: cmake -G "Visual Studio 17 2022" -DKITTY_TEST=ON .. working-directory: ./build - - name: Build kitty + - name: Check Visual Studio installation run: | - "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" kitty.sln /t:run_tests + & "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -prerelease -products * -requires Microsoft.Component.MSBuild + - name: Setup MSBuild + uses: microsoft/setup-msbuild@v1 + - name: Build kitty + run: msbuild kitty.sln /t:run_tests working-directory: ./build - shell: cmd - name: Run tests run: | cd build - .\test\Debug\run_tests + .\test\Debug\run_tests \ No newline at end of file