mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 22:44:20 +02:00
Set CLASSPATH to empty for JRuby
This commit is contained in:
+3
@@ -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`)
|
||||
}
|
||||
|
||||
@@ -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`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user