mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 14:34:21 +02:00
Add support for macos-13-arm64 GitHub runners
This commit is contained in:
+6
-2
@@ -101,10 +101,14 @@ async function downloadAndExtract(platform, engine, version, rubyPrefix) {
|
||||
|
||||
function getDownloadURL(platform, engine, version) {
|
||||
let builderPlatform = platform
|
||||
if (platform.startsWith('windows-')) {
|
||||
if (platform.startsWith('windows-') && os.arch() === 'x64') {
|
||||
builderPlatform = 'windows-latest'
|
||||
} else if (platform.startsWith('macos-')) {
|
||||
builderPlatform = 'macos-latest'
|
||||
if (os.arch() === 'x64') {
|
||||
builderPlatform = 'macos-latest'
|
||||
} else if (os.arch() === 'arm64') {
|
||||
builderPlatform = 'macos-13-arm64'
|
||||
}
|
||||
}
|
||||
|
||||
if (common.isHeadVersion(version)) {
|
||||
|
||||
Reference in New Issue
Block a user