mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 22:44:20 +02:00
Give a better error for TruffleRuby 34+ on macOS Intel
This commit is contained in:
+2
@@ -92683,6 +92683,8 @@ function validateRubyEngineAndVersion(platform, engineVersions, engine, parsedVe
|
||||
But of course you should consider dropping support for these long-EOL Rubies, which cannot even be built on recent macOS machines.`)
|
||||
} else if (engine === 'truffleruby' && platform.startsWith('windows')) {
|
||||
throw new Error('TruffleRuby does not currently support Windows.')
|
||||
} else if (engine === 'truffleruby' && platform.startsWith('macos') && os.arch() === 'x64' && common.floatVersion(version) >= 34.0) {
|
||||
throw new Error('TruffleRuby 34+ no longer supports macOS Intel, please exclude that combination from CI.')
|
||||
}
|
||||
|
||||
return version
|
||||
|
||||
Reference in New Issue
Block a user