|
40 | 40 | vc: 2019 |
41 | 41 | vcvars: '10.0.22621.0 -vcvars_ver=14.2' |
42 | 42 | 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 |
43 | 46 | - os: 2022 |
44 | 47 | vc: 2019 |
45 | 48 | vcvars: '10.0.22621.0 -vcvars_ver=14.2' |
|
64 | 67 | GITPULLOPTIONS: --no-tags origin ${{ github.ref }} |
65 | 68 | OS_VER: windows-${{ matrix.os < 2022 && '2019' || matrix.os }} |
66 | 69 | 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% |
69 | 72 |
|
70 | 73 | steps: |
71 | 74 | - run: md build |
|
76 | 79 | ruby-version: '3.0' |
77 | 80 | bundler: none |
78 | 81 | windows-toolchain: none |
| 82 | + if: ${{ matrix.os != '11-arm' }} |
79 | 83 |
|
80 | 84 | - name: Install libraries with scoop |
81 | 85 | run: | |
@@ -112,6 +116,9 @@ jobs: |
112 | 116 | for /f "delims=;" %%I in ('%vswhere% -latest -property installationPath') do ( |
113 | 117 | set VCVARS="%%I\VC\Auxiliary\Build\vcvars64.bat" |
114 | 118 | ) |
| 119 | + if "${{ matrix.os }}" == "11-arm" ( |
| 120 | + set VCVARS="C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsarm64.bat" |
| 121 | + ) |
115 | 122 | set VCVARS |
116 | 123 | set | uutils sort > old.env |
117 | 124 | call %VCVARS% ${{ matrix.vcvars || '' }} |
@@ -156,6 +163,20 @@ jobs: |
156 | 163 | # But not for this Visual Studio workflow. So here we extract gems before building. |
157 | 164 | - run: nmake extract-gems |
158 | 165 |
|
| 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 | +
|
159 | 180 | - run: nmake |
160 | 181 |
|
161 | 182 | - name: Set up Launchable |
|
0 commit comments