Skip to content

Commit b9b4ef1

Browse files
committed
Add support for ubuntu-22.04-arm64 and ubuntu-24.04-arm64
1 parent 87b4893 commit b9b4ef1

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

common.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ export async function hashFile(file) {
165165
const GitHubHostedPlatforms = [
166166
'ubuntu-20.04-x64',
167167
'ubuntu-22.04-x64',
168+
'ubuntu-22.04-arm64',
168169
'ubuntu-24.04-x64',
170+
'ubuntu-24.04-arm64',
169171
'windows-2019-x64',
170172
'windows-2022-x64',
171173
'windows-2025-x64',

dist/index.js

Lines changed: 13 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ruby-builder.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ async function downloadAndExtract(platform, engine, version, rubyPrefix) {
9191
}
9292

9393
function getDownloadURL(platform, engine, version) {
94-
let builderPlatform = platform
94+
let builderPlatform = null
9595
if (platform.startsWith('windows-') && os.arch() === 'x64') {
9696
builderPlatform = 'windows-latest'
9797
} else if (platform.startsWith('macos-')) {
@@ -100,6 +100,16 @@ function getDownloadURL(platform, engine, version) {
100100
} else if (os.arch() === 'arm64') {
101101
builderPlatform = 'macos-13-arm64'
102102
}
103+
} else if (platform.startsWith('ubuntu-')) {
104+
if (os.arch() === 'x64') {
105+
builderPlatform = platform
106+
} else if (os.arch() === 'arm64') {
107+
builderPlatform = `${platform}-arm64`
108+
}
109+
}
110+
111+
if (builderPlatform === null) {
112+
throw new Error(`Unknown download URL for platform ${platform}`)
103113
}
104114

105115
if (common.isHeadVersion(version)) {

0 commit comments

Comments
 (0)