mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-14 06:54:20 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d8d290d206 | ||
|
|
6044e83b8f | ||
|
|
970f6659fb |
@@ -18,11 +18,11 @@ This action currently supports these versions of MRI, JRuby and TruffleRuby:
|
|||||||
| Interpreter | Versions |
|
| Interpreter | Versions |
|
||||||
| ----------- | -------- |
|
| ----------- | -------- |
|
||||||
| Ruby | 2.2, 2.3.0 - 2.3.8, 2.4.0 - 2.4.9, 2.5.0 - 2.5.7, 2.6.0 - 2.6.5, 2.7.0, head, mingw, mswin |
|
| Ruby | 2.2, 2.3.0 - 2.3.8, 2.4.0 - 2.4.9, 2.5.0 - 2.5.7, 2.6.0 - 2.6.5, 2.7.0, head, mingw, mswin |
|
||||||
| JRuby | 9.2.9.0 - 9.2.10.0, head |
|
| JRuby | 9.2.9.0 - 9.2.11.0, head |
|
||||||
| TruffleRuby | 19.3.0 - 20.0.0, head |
|
| TruffleRuby | 19.3.0 - 20.0.0, head |
|
||||||
| Rubinius | 4.14 |
|
| Rubinius | 4.14 |
|
||||||
|
|
||||||
`mingw` and `mswin` are `ruby-head` builds using the MSYS2 and MSVC toolchains on Windows.
|
On Windows, `mingw` and `mswin` are `ruby-head` builds using the MSYS2/MinGW and the MSVC toolchains respectively.
|
||||||
Note that Ruby ≤ 2.3 and the OpenSSL version it needs (1.0.2) are both end-of-life,
|
Note that Ruby ≤ 2.3 and the OpenSSL version it needs (1.0.2) are both end-of-life,
|
||||||
which means Ruby ≤ 2.3 is unmaintained and considered insecure.
|
which means Ruby ≤ 2.3 is unmaintained and considered insecure.
|
||||||
On Windows, Ruby 2.4 uses OpenSSL 1.0.2, which is no longer maintained.
|
On Windows, Ruby 2.4 uses OpenSSL 1.0.2, which is no longer maintained.
|
||||||
|
|||||||
+3
-7
@@ -1391,7 +1391,7 @@ function getVersions(platform) {
|
|||||||
"head"
|
"head"
|
||||||
],
|
],
|
||||||
"jruby": [
|
"jruby": [
|
||||||
"9.2.9.0", "9.2.10.0",
|
"9.2.9.0", "9.2.10.0", "9.2.11.0",
|
||||||
"head"
|
"head"
|
||||||
],
|
],
|
||||||
"truffleruby": [
|
"truffleruby": [
|
||||||
@@ -3424,12 +3424,8 @@ async function downloadAndExtract(platform, ruby) {
|
|||||||
console.log(url)
|
console.log(url)
|
||||||
|
|
||||||
const downloadPath = await tc.downloadTool(url)
|
const downloadPath = await tc.downloadTool(url)
|
||||||
if (platform.startsWith('windows')) {
|
const tar = platform.startsWith('windows') ? 'C:\\Windows\\system32\\tar.exe' : 'tar'
|
||||||
let args = [ '-xz', '-C', rubiesDir, '-f', downloadPath ]
|
await exec.exec(tar, [ '-xz', '-C', rubiesDir, '-f', downloadPath ])
|
||||||
await exec.exec('C:\\Windows\\system32\\tar.exe', args)
|
|
||||||
} else {
|
|
||||||
await tc.extractTar(downloadPath, rubiesDir)
|
|
||||||
}
|
|
||||||
|
|
||||||
return path.join(rubiesDir, ruby)
|
return path.join(rubiesDir, ruby)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ export function getVersions(platform) {
|
|||||||
"head"
|
"head"
|
||||||
],
|
],
|
||||||
"jruby": [
|
"jruby": [
|
||||||
"9.2.9.0", "9.2.10.0",
|
"9.2.9.0", "9.2.10.0", "9.2.11.0",
|
||||||
"head"
|
"head"
|
||||||
],
|
],
|
||||||
"truffleruby": [
|
"truffleruby": [
|
||||||
|
|||||||
+2
-6
@@ -36,12 +36,8 @@ async function downloadAndExtract(platform, ruby) {
|
|||||||
console.log(url)
|
console.log(url)
|
||||||
|
|
||||||
const downloadPath = await tc.downloadTool(url)
|
const downloadPath = await tc.downloadTool(url)
|
||||||
if (platform.startsWith('windows')) {
|
const tar = platform.startsWith('windows') ? 'C:\\Windows\\system32\\tar.exe' : 'tar'
|
||||||
let args = [ '-xz', '-C', rubiesDir, '-f', downloadPath ]
|
await exec.exec(tar, [ '-xz', '-C', rubiesDir, '-f', downloadPath ])
|
||||||
await exec.exec('C:\\Windows\\system32\\tar.exe', args)
|
|
||||||
} else {
|
|
||||||
await tc.extractTar(downloadPath, rubiesDir)
|
|
||||||
}
|
|
||||||
|
|
||||||
return path.join(rubiesDir, ruby)
|
return path.join(rubiesDir, ruby)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user