Skip to content

Commit 08f6280

Browse files
committed
Revert "Extract windows-11-arm job from windows.yml because it may ignored vcpkg binary cache for x64-windows"
This reverts commit 8e258af.
1 parent 8e258af commit 08f6280

File tree

2 files changed

+23
-176
lines changed

2 files changed

+23
-176
lines changed

.github/workflows/windows-arm.yml

Lines changed: 0 additions & 174 deletions
This file was deleted.

.github/workflows/windows.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040
vc: 2019
4141
vcvars: '10.0.22621.0 -vcvars_ver=14.2'
4242
test_task: check
43+
- os: 11-arm
44+
test_task: 'btest test-basic test-tool' # check and test-spec are broken yet.
45+
target: arm64
4346
- os: 2022
4447
vc: 2019
4548
vcvars: '10.0.22621.0 -vcvars_ver=14.2'
@@ -64,8 +67,8 @@ jobs:
6467
GITPULLOPTIONS: --no-tags origin ${{ github.ref }}
6568
OS_VER: windows-${{ matrix.os < 2022 && '2019' || matrix.os }}
6669
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
67-
VCPKG_DEFAULT_TRIPLET: x64-windows
68-
RUBY_OPT_DIR: D:/a/ruby/ruby/src/vcpkg_installed/%VCPKG_DEFAULT_TRIPLET%
70+
VCPKG_DEFAULT_TRIPLET: ${{ matrix.target || 'x64' }}-windows
71+
RUBY_OPT_DIR: ${{ matrix.os == '11-arm' && 'C' || 'D' }}:/a/ruby/ruby/src/vcpkg_installed/%VCPKG_DEFAULT_TRIPLET%
6972

7073
steps:
7174
- run: md build
@@ -76,6 +79,7 @@ jobs:
7679
ruby-version: '3.0'
7780
bundler: none
7881
windows-toolchain: none
82+
if: ${{ matrix.os != '11-arm' }}
7983

8084
- name: Install libraries with scoop
8185
run: |
@@ -112,6 +116,9 @@ jobs:
112116
for /f "delims=;" %%I in ('%vswhere% -latest -property installationPath') do (
113117
set VCVARS="%%I\VC\Auxiliary\Build\vcvars64.bat"
114118
)
119+
if "${{ matrix.os }}" == "11-arm" (
120+
set VCVARS="C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsarm64.bat"
121+
)
115122
set VCVARS
116123
set | uutils sort > old.env
117124
call %VCVARS% ${{ matrix.vcvars || '' }}
@@ -156,6 +163,20 @@ jobs:
156163
# But not for this Visual Studio workflow. So here we extract gems before building.
157164
- run: nmake extract-gems
158165

166+
# windows-11-arm runner cannot run `ruby tool/file2lastrev.rb --revision.h --output=revision.h`
167+
- run: |
168+
Set-Content -Path "revision.h" -Value @"
169+
#define RUBY_REVISION "8aedb979da"
170+
#define RUBY_FULL_REVISION "8aedb979da4090116f4fc5a6497f139fd0038881"
171+
#define RUBY_BRANCH_NAME "win-arm"
172+
#define RUBY_RELEASE_DATETIME "2025-04-16T23:18:54Z"
173+
#define RUBY_RELEASE_YEAR 2025
174+
#define RUBY_RELEASE_MONTH 4
175+
#define RUBY_RELEASE_DAY 17
176+
"@
177+
shell: pwsh
178+
if: ${{ matrix.os == '11-arm' }}
179+
159180
- run: nmake
160181

161182
- name: Set up Launchable

0 commit comments

Comments
 (0)