mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 14:34:21 +02:00
Add support for Rubinius
* Only works on ubuntu-latest.
This commit is contained in:
@@ -14,10 +14,16 @@ jobs:
|
||||
matrix:
|
||||
os: [ ubuntu-16.04, ubuntu-18.04, macos-latest, windows-latest ]
|
||||
# Use various version syntaxes here for testing
|
||||
ruby: [ .ruby-version, 2.3, ruby-2.4, 2.5, ruby-2.6.5, 2.7.0, jruby, truffleruby ]
|
||||
ruby: [ .ruby-version, 2.3, ruby-2.4, 2.5, ruby-2.6.5, 2.7.0, jruby, truffleruby, rubinius ]
|
||||
exclude:
|
||||
- os: windows-latest
|
||||
ruby: truffleruby
|
||||
- os: ubuntu-16.04
|
||||
ruby: rubinius
|
||||
- os: macos-latest
|
||||
ruby: rubinius
|
||||
- os: windows-latest
|
||||
ruby: rubinius
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
+5
@@ -4867,7 +4867,12 @@ async function getAvailableVersions(engine) {
|
||||
|
||||
async function install(platform, ruby) {
|
||||
const rubyPrefix = await downloadAndExtract(platform, ruby)
|
||||
|
||||
core.addPath(path.join(rubyPrefix, 'bin'))
|
||||
if (ruby.startsWith('rubinius')) {
|
||||
core.addPath(path.join(rubyPrefix, 'gems', 'bin'))
|
||||
}
|
||||
|
||||
return rubyPrefix
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,12 @@ export async function getAvailableVersions(engine) {
|
||||
|
||||
export async function install(platform, ruby) {
|
||||
const rubyPrefix = await downloadAndExtract(platform, ruby)
|
||||
|
||||
core.addPath(path.join(rubyPrefix, 'bin'))
|
||||
if (ruby.startsWith('rubinius')) {
|
||||
core.addPath(path.join(rubyPrefix, 'gems', 'bin'))
|
||||
}
|
||||
|
||||
return rubyPrefix
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user