Add support for Rubinius

* Only works on ubuntu-latest.
This commit is contained in:
Benoit Daloze
2020-01-25 16:54:03 +01:00
parent db2d09d84c
commit 689f94552b
3 changed files with 17 additions and 1 deletions
+7 -1
View File
@@ -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
Generated Vendored
+5
View File
@@ -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
}
+5
View File
@@ -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
}