summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2025-04-11 11:37:10 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-04-11 12:18:56 +0900
commit8a15f806532fd1912b930abdcec6efac33f438b8 (patch)
tree7e88b8d95593873a29000d566ed165c332856c9d
parent0e792793277f3bb67ec58369436a57c0cb757a4d (diff)
Fixed wrong usage of matrix.vs. That label is os version, not vs version
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13102
-rw-r--r--.github/workflows/windows.yml25
1 files changed, 14 insertions, 11 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index ec31bbae47..1d5acee65c 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -25,19 +25,22 @@ jobs:
strategy:
matrix:
include:
- - vc: 2015
- vs: 2019
+ - os: 2019
+ vc: 2015
vcvars: '10.0.14393.0 -vcvars_ver=14.0' # The oldest Windows 10 SDK w/ VC++ 2015 toolset (v140)
test_task: check
- - vs: 2019
+ - os: 2019
+ vc: 2019
test_task: check
- - vs: 2019
+ - os: 2019
+ vc: 2019
test_task: test-bundled-gems
- # - vs: 2022
+ # - os: 2022
+ # vc: 2022
# test_task: check
fail-fast: false
- runs-on: windows-${{ matrix.vs < 2022 && '2019' || matrix.vs }}
+ runs-on: windows-${{ matrix.os < 2022 && '2019' || matrix.os }}
if: >-
${{!(false
@@ -49,11 +52,11 @@ jobs:
|| (github.event_name == 'push' && github.event.pull_request.user.login == 'dependabot[bot]')
)}}
- name: VisualStudio ${{ matrix.vc || matrix.vs }} (${{ matrix.test_task }})
+ name: Windows ${{ matrix.os }}/Visual C++ ${{ matrix.vc }} (${{ matrix.test_task }})
env:
GITPULLOPTIONS: --no-tags origin ${{ github.ref }}
- OS_VER: windows-${{ matrix.vs < 2022 && '2019' || matrix.vs }}
+ OS_VER: windows-${{ matrix.os < 2022 && '2019' || matrix.os }}
VCPKG_DEFAULT_TRIPLET: ${{ matrix.target || 'x64' }}-windows
steps:
@@ -123,7 +126,7 @@ jobs:
# %TEMP% is inconsistent with %TMP% and test-all expects they are consistent.
# https://github.com/actions/virtual-environments/issues/712#issuecomment-613004302
run: |
- ::- Set up VC ${{ matrix.vc || matrix.vs }}
+ ::- Set up VC ${{ matrix.vc }}
set vswhere="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
for /f "delims=;" %%I in ('%vswhere% -latest -property installationPath') do (
set VCVARS="%%I\VC\Auxiliary\Build\vcvars64.bat"
@@ -179,7 +182,7 @@ jobs:
- name: Set up Launchable
uses: ./.github/actions/launchable/setup
with:
- os: windows-${{ matrix.vs < 2022 && '2019' || matrix.vs }}
+ os: windows-${{ matrix.os < 2022 && '2019' || matrix.os }}
launchable-token: ${{ secrets.LAUNCHABLE_TOKEN }}
builddir: build
srcdir: src
@@ -194,7 +197,7 @@ jobs:
- uses: ./.github/actions/slack
with:
- label: VS${{ matrix.vc || matrix.vs }} / ${{ matrix.test_task || 'check' }}
+ label: Windows ${{ matrix.os }} / VC ${{ matrix.vc }} / ${{ matrix.test_task || 'check' }}
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: ${{ failure() }}