@@ -25,19 +25,24 @@ jobs:
2525 strategy :
2626 matrix :
2727 include :
28- - vc : 2015
29- vs : 2019
28+ - os : 2019
29+ vc : 2015
3030 vcvars : ' 10.0.14393.0 -vcvars_ver=14.0' # The oldest Windows 10 SDK w/ VC++ 2015 toolset (v140)
3131 test_task : check
32- - vs : 2019
32+ - os : 2019
33+ vc : 2019
3334 test_task : check
34- - vs : 2019
35+ - os : 2022
36+ vc : 2019
37+ vcvars : ' 10.0.22621.0 -vcvars_ver=14.2' # The defautl Windows 11 SDK and toolset are broken at windows-2022
38+ test_task : check
39+ - os : 2022
40+ vc : 2019
41+ vcvars : ' 10.0.22621.0 -vcvars_ver=14.2'
3542 test_task : test-bundled-gems
36- # - vs: 2022
37- # test_task: check
3843 fail-fast : false
3944
40- runs-on : windows-${{ matrix.vs < 2022 && '2019' || matrix.vs }}
45+ runs-on : windows-${{ matrix.os < 2022 && '2019' || matrix.os }}
4146
4247 if : >-
4348 ${{!(false
@@ -49,11 +54,11 @@ jobs:
4954 || (github.event_name == 'push' && github.event.pull_request.user.login == 'dependabot[bot]')
5055 )}}
5156
52- name : VisualStudio ${{ matrix.vc || matrix.vs }} (${{ matrix.test_task }})
57+ name : Windows ${{ matrix.os }}/Visual C++ ${{ matrix.vc }} (${{ matrix.test_task }})
5358
5459 env :
5560 GITPULLOPTIONS : --no-tags origin ${{ github.ref }}
56- OS_VER : windows-${{ matrix.vs < 2022 && '2019' || matrix.vs }}
61+ OS_VER : windows-${{ matrix.os < 2022 && '2019' || matrix.os }}
5762 VCPKG_DEFAULT_TRIPLET : ${{ matrix.target || 'x64' }}-windows
5863
5964 steps :
@@ -123,7 +128,7 @@ jobs:
123128 # %TEMP% is inconsistent with %TMP% and test-all expects they are consistent.
124129 # https://github.com/actions/virtual-environments/issues/712#issuecomment-613004302
125130 run : |
126- ::- Set up VC ${{ matrix.vc || matrix.vs }}
131+ ::- Set up VC ${{ matrix.vc }}
127132 set vswhere="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
128133 for /f "delims=;" %%I in ('%vswhere% -latest -property installationPath') do (
129134 set VCVARS="%%I\VC\Auxiliary\Build\vcvars64.bat"
@@ -179,7 +184,7 @@ jobs:
179184 - name : Set up Launchable
180185 uses : ./.github/actions/launchable/setup
181186 with :
182- os : windows-${{ matrix.vs < 2022 && '2019' || matrix.vs }}
187+ os : windows-${{ matrix.os < 2022 && '2019' || matrix.os }}
183188 launchable-token : ${{ secrets.LAUNCHABLE_TOKEN }}
184189 builddir : build
185190 srcdir : src
@@ -194,7 +199,7 @@ jobs:
194199
195200 - uses : ./.github/actions/slack
196201 with :
197- label : VS ${{ matrix.vc || matrix.vs }} / ${{ matrix.test_task || 'check' }}
202+ label : Windows ${{ matrix.os }} / VC ${{ matrix.vc }} / ${{ matrix.test_task || 'check' }}
198203 SLACK_WEBHOOK_URL : ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
199204 if : ${{ failure() }}
200205
0 commit comments