mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 14:34:21 +02:00
Remove Rubinius support
* Fixes https://github.com/ruby/setup-ruby/issues/101
This commit is contained in:
@@ -19,7 +19,6 @@ jobs:
|
||||
# Use various version syntax here for testing
|
||||
ruby: [ 2.1, 2.2, 2.3, 2.4, 2.5, 2.6.6, 2.7, ruby-head, debug, jruby-9.1, jruby, jruby-head, truffleruby, truffleruby-head ]
|
||||
include:
|
||||
- { os: ubuntu-18.04, ruby: rubinius }
|
||||
- { os: windows-2016, ruby: mingw }
|
||||
- { os: windows-2019, ruby: mingw }
|
||||
- { os: windows-2019, ruby: mswin }
|
||||
|
||||
@@ -17,7 +17,6 @@ This action currently supports these versions of MRI, JRuby and TruffleRuby:
|
||||
| Ruby | 2.1.9, 2.2, 2.3.0 - 2.3.8, 2.4.0 - 2.4.10, 2.5.0 - 2.5.8, 2.6.0 - 2.6.6, 2.7.2, head, debug, mingw, mswin |
|
||||
| JRuby | 9.1.17.0, 9.2.9.0 - 9.2.13.0, head |
|
||||
| TruffleRuby | 19.3.0 - 20.2.0, head |
|
||||
| Rubinius | 4.14 |
|
||||
|
||||
`ruby-debug` is the same as `ruby-head` but with assertions enabled (`-DRUBY_DEBUG=1`).
|
||||
On Windows, `mingw` and `mswin` are `ruby-head` builds using the MSYS2/MinGW and the MSVC toolchains respectively.
|
||||
@@ -40,8 +39,6 @@ The action works for all [GitHub-hosted runners](https://help.github.com/en/acti
|
||||
| macOS | `macos-latest` (= `macos-10.15`) | |
|
||||
| Windows | `windows-latest` (= `windows-2019`) | `windows-2016` |
|
||||
|
||||
Rubinius is only available on `ubuntu-18.04`.
|
||||
|
||||
The prebuilt releases are generated by [ruby-builder](https://github.com/ruby/ruby-builder)
|
||||
and on Windows by [RubyInstaller2](https://github.com/oneclick/rubyinstaller2).
|
||||
`mingw` and `mswin` builds are generated by [ruby-loco](https://github.com/MSP-Greg/ruby-loco).
|
||||
|
||||
+1
-14
@@ -44499,12 +44499,6 @@ function getVersions(platform) {
|
||||
]
|
||||
}
|
||||
|
||||
if (platform === 'ubuntu-18.04') {
|
||||
versions['rubinius'] = [
|
||||
"4.14"
|
||||
]
|
||||
}
|
||||
|
||||
return versions
|
||||
}
|
||||
|
||||
@@ -51349,8 +51343,6 @@ async function installBundler(bundlerVersionInput, lockFile, platform, rubyPrefi
|
||||
console.log(`Using Bundler 2 shipped with ${engine}-${rubyVersion}`)
|
||||
} else if (engine === 'truffleruby' && bundlerVersion === '1') {
|
||||
console.log(`Using Bundler 1 shipped with ${engine}`)
|
||||
} else if (engine === 'rubinius') {
|
||||
console.log(`Rubinius only supports the version of Bundler shipped with it`)
|
||||
} else {
|
||||
const gem = path.join(rubyPrefix, 'bin', 'gem')
|
||||
await exec.exec(gem, ['install', 'bundler', '-v', `~> ${bundlerVersion}`, '--no-document'])
|
||||
@@ -52886,12 +52878,7 @@ async function downloadAndExtract(platform, engine, version) {
|
||||
const rubyPrefix = path.join(rubiesDir, `${engine}-${version}`)
|
||||
|
||||
// Set the PATH now, so the MSYS2 'tar' is in Path on Windows
|
||||
if (engine === 'rubinius') {
|
||||
core.warning('Rubinius builds will no longer be provided, see https://github.com/ruby/setup-ruby/issues/101')
|
||||
common.setupPath([path.join(rubyPrefix, 'bin'), path.join(rubyPrefix, 'gems', 'bin')])
|
||||
} else {
|
||||
common.setupPath([path.join(rubyPrefix, 'bin')])
|
||||
}
|
||||
common.setupPath([path.join(rubyPrefix, 'bin')])
|
||||
|
||||
await io.mkdirP(rubiesDir)
|
||||
|
||||
|
||||
@@ -227,8 +227,6 @@ async function installBundler(bundlerVersionInput, lockFile, platform, rubyPrefi
|
||||
console.log(`Using Bundler 2 shipped with ${engine}-${rubyVersion}`)
|
||||
} else if (engine === 'truffleruby' && bundlerVersion === '1') {
|
||||
console.log(`Using Bundler 1 shipped with ${engine}`)
|
||||
} else if (engine === 'rubinius') {
|
||||
console.log(`Rubinius only supports the version of Bundler shipped with it`)
|
||||
} else {
|
||||
const gem = path.join(rubyPrefix, 'bin', 'gem')
|
||||
await exec.exec(gem, ['install', 'bundler', '-v', `~> ${bundlerVersion}`, '--no-document'])
|
||||
|
||||
@@ -22,11 +22,5 @@ export function getVersions(platform) {
|
||||
]
|
||||
}
|
||||
|
||||
if (platform === 'ubuntu-18.04') {
|
||||
versions['rubinius'] = [
|
||||
"4.14"
|
||||
]
|
||||
}
|
||||
|
||||
return versions
|
||||
}
|
||||
|
||||
+1
-6
@@ -26,12 +26,7 @@ async function downloadAndExtract(platform, engine, version) {
|
||||
const rubyPrefix = path.join(rubiesDir, `${engine}-${version}`)
|
||||
|
||||
// Set the PATH now, so the MSYS2 'tar' is in Path on Windows
|
||||
if (engine === 'rubinius') {
|
||||
core.warning('Rubinius builds will no longer be provided, see https://github.com/ruby/setup-ruby/issues/101')
|
||||
common.setupPath([path.join(rubyPrefix, 'bin'), path.join(rubyPrefix, 'gems', 'bin')])
|
||||
} else {
|
||||
common.setupPath([path.join(rubyPrefix, 'bin')])
|
||||
}
|
||||
common.setupPath([path.join(rubyPrefix, 'bin')])
|
||||
|
||||
await io.mkdirP(rubiesDir)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user