Set CLASSPATH to empty for JRuby

This commit is contained in:
MSP-Greg
2020-01-09 18:15:08 +01:00
committed by Benoit Daloze
parent 4c25e810ed
commit 98c68de273
2 changed files with 6 additions and 0 deletions
Generated Vendored
+3
View File
@@ -1399,6 +1399,9 @@ async function run() {
if (platform === 'windows-latest') {
rubyPrefix = await windows.downloadExtractAndSetPATH(ruby)
} else {
if (ruby.startsWith('jruby')) {
core.exportVariable('CLASSPATH', '')
}
rubyPrefix = await downloadAndExtract(platform, ruby)
core.addPath(`${rubyPrefix}/bin`)
}
+3
View File
@@ -18,6 +18,9 @@ async function run() {
if (platform === 'windows-latest') {
rubyPrefix = await windows.downloadExtractAndSetPATH(ruby)
} else {
if (ruby.startsWith('jruby')) {
core.exportVariable('CLASSPATH', '')
}
rubyPrefix = await downloadAndExtract(platform, ruby)
core.addPath(`${rubyPrefix}/bin`)
}