summaryrefslogtreecommitdiff
path: root/.github/workflows/windows.yml
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2024-01-09 00:12:11 -0800
committerGitHub <noreply@github.com>2024-01-09 00:12:11 -0800
commit23345cc699e032bc95bad6f00e8a977f8be450f7 (patch)
tree28559332277cc8b896b8a4f85e32b2538fd1dd44 /.github/workflows/windows.yml
parent7285b165a46dccd4b863c328e731ad234d567b56 (diff)
Add Visual Studio 2015 job on GitHub Actions (#9452)
[[Feature #19982]](https://bugs.ruby-lang.org/issues/19982)
Diffstat (limited to '.github/workflows/windows.yml')
-rw-r--r--.github/workflows/windows.yml16
1 files changed, 8 insertions, 8 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 8b34f962fe..b2b3640fd6 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -37,6 +37,9 @@ jobs:
strategy:
matrix:
include:
+ - vc: 2015
+ vs: 2019
+ vcvars: '10.0.14393.0 -vcvars_ver=14.0' # The oldest Windows 10 SDK w/ VC++ 2015 toolset (v140)
- vs: 2019
- vs: 2022
fail-fast: false
@@ -51,7 +54,7 @@ jobs:
|| (github.event_name == 'push' && github.actor == 'dependabot[bot]')
)}}
- name: VisualStudio ${{ matrix.vs }}
+ name: VisualStudio ${{ matrix.vc || matrix.vs }}
env:
GITPULLOPTIONS: --no-tags origin ${{ github.ref }}
@@ -134,13 +137,10 @@ jobs:
# https://github.com/actions/virtual-environments/issues/712#issuecomment-613004302
run: |
set VS=${{ matrix.vs }}
- set VCVARS=${{ matrix.vcvars || '' }}
- if not "%VCVARS%" == "" goto :vcset
- set VCVARS="C:\Program Files (x86)\Microsoft Visual Studio\%VS%\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
- if not exist %VCVARS% set VCVARS="C:\Program Files\Microsoft Visual Studio\%VS%\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
- :vcset
+ set VCVARS="C:\Program Files (x86)\Microsoft Visual Studio\%VS%\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
+ if not exist %VCVARS% set VCVARS="C:\Program Files\Microsoft Visual Studio\%VS%\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
set | C:\msys64\usr\bin\sort > old.env
- call %VCVARS%
+ call %VCVARS% ${{ matrix.vcvars || '' }}
nmake -f nul
set TMP=%USERPROFILE%\AppData\Local\Temp
set TEMP=%USERPROFILE%\AppData\Local\Temp
@@ -191,7 +191,7 @@ jobs:
- uses: ./.github/actions/slack
with:
- label: VS${{ matrix.vs }} / ${{ matrix.test_task || 'check' }}
+ label: VS${{ matrix.vc || matrix.vs }} / ${{ matrix.test_task || 'check' }}
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: ${{ failure() }}