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
+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
}