Skip to content

Commit 92b471a

Browse files
committed
added msvc2022 ci build
1 parent 60d3d35 commit 92b471a

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/qbs_tests.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,27 @@ jobs:
3535
3636
windows:
3737
name: "Windows"
38-
runs-on: windows-2019
38+
runs-on: ${{ matrix.os }}
39+
continue-on-error: ${{ matrix.experimental }}
3940

4041
strategy:
4142
fail-fast: false
4243
matrix:
4344
include:
44-
- profile: MSVC2019-x64
45+
- os: windows-2019
46+
vcvars: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
47+
experimental: false
48+
49+
- os: windows-2022
50+
vcvars: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat
51+
experimental: true
4552

4653
steps:
4754
- name: Install Qbs
4855
run: choco install qbs
4956
- name: Setup Qbs
5057
run: |
51-
qbs setup-toolchains --detect
52-
qbs config --list profiles
58+
qbs setup-toolchains --type msvc $(cmd /c '"${{ matrix.vcvars }}" >nul & where cl') msvc
5359
5460
- uses: actions/checkout@v2
5561

@@ -59,6 +65,6 @@ jobs:
5965

6066
- name: Build and run Tests
6167
run: >-
62-
qbs build profile:${{ matrix.profile }}
68+
qbs build profile:msvc
6369
--build-directory ${env:RUNNER_TEMP}\build
6470
-p autotest-runner

0 commit comments

Comments
 (0)