Skip to content

Commit 05e569f

Browse files
committed
Add arm64 platform to allow list and expand os matrix in workflow
1 parent 868b3f0 commit 05e569f

File tree

4 files changed

+3943
-3370
lines changed

4 files changed

+3943
-3370
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
os: [ ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, macos-13, macos-14, macos-15, windows-2019, windows-2022 ]
20+
os: [ ubuntu-20.04, ubuntu-22.04, ubuntu-22.04-arm, ubuntu-24.04, ubuntu-24.04-arm, macos-13, macos-14, macos-15, windows-2019, windows-2022 ]
2121
ruby: [
2222
'1.9', '2.0', '2.1', '2.2', '2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3', '3.4', ruby-head,
2323
jruby, jruby-head,

common.js

+3
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ export async function hashFile(file) {
164164
// macos is not listed explicitly, see below
165165
const GitHubHostedPlatforms = [
166166
'ubuntu-20.04-x64',
167+
'ubuntu-22.04-arm64',
167168
'ubuntu-22.04-x64',
169+
'ubuntu-24.04-arm64',
168170
'ubuntu-24.04-x64',
169171
'windows-2019-x64',
170172
'windows-2022-x64',
@@ -175,6 +177,7 @@ function isSupportedPlatform() {
175177
const platform = getOSName()
176178
switch (platform) {
177179
case 'ubuntu':
180+
console.log(`tried comparing ${GitHubHostedPlatforms} with ${getOSNameVersionArch()}`);
178181
return GitHubHostedPlatforms.includes(getOSNameVersionArch())
179182
case 'macos':
180183
// See https://github.com/ruby/ruby-builder/blob/master/README.md#naming

0 commit comments

Comments
 (0)