mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 14:34:21 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9eb537ca03 | ||
|
|
e1a3b100ca | ||
|
|
0df5288f06 | ||
|
|
89f90524b8 | ||
|
|
12fd324f1d | ||
|
|
a99ac84464 |
@@ -135,9 +135,6 @@ jobs:
|
|||||||
- name: bash test
|
- name: bash test
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo ~ && bundle install
|
run: echo ~ && bundle install
|
||||||
- name: Windows JRuby
|
|
||||||
if: runner.os == 'Windows' && startsWith(matrix.ruby, 'jruby')
|
|
||||||
run: gem install sassc
|
|
||||||
|
|
||||||
testDotRubyVersion:
|
testDotRubyVersion:
|
||||||
name: "Test .ruby-version"
|
name: "Test .ruby-version"
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ The action works on these [GitHub-hosted runners](https://docs.github.com/en/act
|
|||||||
|
|
||||||
| Operating System | Supported |
|
| Operating System | Supported |
|
||||||
| ---------------- | --------- |
|
| ---------------- | --------- |
|
||||||
| Ubuntu | `ubuntu-22.04`, `ubuntu-24.04`, `ubuntu-22.04-arm`, `ubuntu-24.04-arm` |
|
| Ubuntu | `ubuntu-22.04`, `ubuntu-24.04`, `ubuntu-26.04`, `ubuntu-22.04-arm`, `ubuntu-24.04-arm`, `ubuntu-26.04-arm` |
|
||||||
| macOS | `macos-14` and newer versions |
|
| macOS | `macos-14` and newer versions |
|
||||||
| Windows | `windows-2022`, `windows-2025`, `windows-11-arm` |
|
| Windows | `windows-2022`, `windows-2025`, `windows-11-arm` |
|
||||||
|
|
||||||
@@ -168,7 +168,7 @@ should be able to fix them by setting `rubygems: 3.0.0` or higher.
|
|||||||
|
|
||||||
By default, Bundler is installed as follows:
|
By default, Bundler is installed as follows:
|
||||||
|
|
||||||
* If there is a `Gemfile.lock` file (or `$BUNDLE_GEMFILE.lock` or `gems.locked`) with a `BUNDLED WITH` section,
|
* If there is a `Gemfile.lock` file (or `$BUNDLE_LOCKFILE`, `$BUNDLE_GEMFILE.lock`, or `gems.locked`) with a `BUNDLED WITH` section,
|
||||||
that version of Bundler will be installed and used.
|
that version of Bundler will be installed and used.
|
||||||
* If the Ruby ships with Bundler 2.2+ (as a default gem), that version is used.
|
* If the Ruby ships with Bundler 2.2+ (as a default gem), that version is used.
|
||||||
* Otherwise, the latest compatible Bundler version is installed (Bundler 2 on Ruby >= 2.3, Bundler 1 on Ruby < 2.3).
|
* Otherwise, the latest compatible Bundler version is installed (Bundler 2 on Ruby >= 2.3, Bundler 1 on Ruby < 2.3).
|
||||||
@@ -188,7 +188,7 @@ Note that any step doing `bundle install` (for the root `Gemfile`) or `gem insta
|
|||||||
|
|
||||||
This caching speeds up installing gems significantly and avoids too many requests to RubyGems.org.
|
This caching speeds up installing gems significantly and avoids too many requests to RubyGems.org.
|
||||||
It needs a `Gemfile` (or `$BUNDLE_GEMFILE` or `gems.rb`) under the [`working-directory`](#working-directory).
|
It needs a `Gemfile` (or `$BUNDLE_GEMFILE` or `gems.rb`) under the [`working-directory`](#working-directory).
|
||||||
If there is a `Gemfile.lock` (or `$BUNDLE_GEMFILE.lock` or `gems.locked`), `bundle config --local deployment true` is used.
|
If there is a `Gemfile.lock` (or `$BUNDLE_LOCKFILE`, `$BUNDLE_GEMFILE.lock`, or `gems.locked`), `bundle config --local deployment true` is used.
|
||||||
|
|
||||||
To use a `Gemfile` which is not at the root or has a different name, set `BUNDLE_GEMFILE` in the `env` at the job level
|
To use a `Gemfile` which is not at the root or has a different name, set `BUNDLE_GEMFILE` in the `env` at the job level
|
||||||
as shown in the [example](#matrix-of-gemfiles).
|
as shown in the [example](#matrix-of-gemfiles).
|
||||||
|
|||||||
+4
-2
@@ -15,14 +15,16 @@ function isValidBundlerVersion(bundlerVersion) {
|
|||||||
// The returned gemfile is guaranteed to exist, the lockfile might not exist
|
// The returned gemfile is guaranteed to exist, the lockfile might not exist
|
||||||
export function detectGemfiles() {
|
export function detectGemfiles() {
|
||||||
const gemfilePath = process.env['BUNDLE_GEMFILE'] || 'Gemfile'
|
const gemfilePath = process.env['BUNDLE_GEMFILE'] || 'Gemfile'
|
||||||
|
const lockfilePath = process.env['BUNDLE_LOCKFILE']
|
||||||
|
|
||||||
if (fs.existsSync(gemfilePath)) {
|
if (fs.existsSync(gemfilePath)) {
|
||||||
return [gemfilePath, `${gemfilePath}.lock`]
|
return [gemfilePath, lockfilePath || `${gemfilePath}.lock`]
|
||||||
} else if (process.env['BUNDLE_GEMFILE']) {
|
} else if (process.env['BUNDLE_GEMFILE']) {
|
||||||
throw new Error(`$BUNDLE_GEMFILE is set to ${gemfilePath} but does not exist`)
|
throw new Error(`$BUNDLE_GEMFILE is set to ${gemfilePath} but does not exist`)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fs.existsSync("gems.rb")) {
|
if (fs.existsSync("gems.rb")) {
|
||||||
return ["gems.rb", "gems.locked"]
|
return ["gems.rb", lockfilePath || "gems.locked"]
|
||||||
}
|
}
|
||||||
|
|
||||||
return [null, null]
|
return [null, null]
|
||||||
|
|||||||
@@ -186,6 +186,8 @@ const GitHubHostedPlatforms = [
|
|||||||
'ubuntu-22.04-arm64',
|
'ubuntu-22.04-arm64',
|
||||||
'ubuntu-24.04-x64',
|
'ubuntu-24.04-x64',
|
||||||
'ubuntu-24.04-arm64',
|
'ubuntu-24.04-arm64',
|
||||||
|
'ubuntu-26.04-x64',
|
||||||
|
'ubuntu-26.04-arm64',
|
||||||
'windows-2022-x64',
|
'windows-2022-x64',
|
||||||
'windows-2025-x64',
|
'windows-2025-x64',
|
||||||
'windows-11-arm64'
|
'windows-11-arm64'
|
||||||
|
|||||||
+7
-3
@@ -29,14 +29,16 @@ function isValidBundlerVersion(bundlerVersion) {
|
|||||||
// The returned gemfile is guaranteed to exist, the lockfile might not exist
|
// The returned gemfile is guaranteed to exist, the lockfile might not exist
|
||||||
function detectGemfiles() {
|
function detectGemfiles() {
|
||||||
const gemfilePath = process.env['BUNDLE_GEMFILE'] || 'Gemfile'
|
const gemfilePath = process.env['BUNDLE_GEMFILE'] || 'Gemfile'
|
||||||
|
const lockfilePath = process.env['BUNDLE_LOCKFILE']
|
||||||
|
|
||||||
if (fs.existsSync(gemfilePath)) {
|
if (fs.existsSync(gemfilePath)) {
|
||||||
return [gemfilePath, `${gemfilePath}.lock`]
|
return [gemfilePath, lockfilePath || `${gemfilePath}.lock`]
|
||||||
} else if (process.env['BUNDLE_GEMFILE']) {
|
} else if (process.env['BUNDLE_GEMFILE']) {
|
||||||
throw new Error(`$BUNDLE_GEMFILE is set to ${gemfilePath} but does not exist`)
|
throw new Error(`$BUNDLE_GEMFILE is set to ${gemfilePath} but does not exist`)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fs.existsSync("gems.rb")) {
|
if (fs.existsSync("gems.rb")) {
|
||||||
return ["gems.rb", "gems.locked"]
|
return ["gems.rb", lockfilePath || "gems.locked"]
|
||||||
}
|
}
|
||||||
|
|
||||||
return [null, null]
|
return [null, null]
|
||||||
@@ -519,6 +521,8 @@ const GitHubHostedPlatforms = [
|
|||||||
'ubuntu-22.04-arm64',
|
'ubuntu-22.04-arm64',
|
||||||
'ubuntu-24.04-x64',
|
'ubuntu-24.04-x64',
|
||||||
'ubuntu-24.04-arm64',
|
'ubuntu-24.04-arm64',
|
||||||
|
'ubuntu-26.04-x64',
|
||||||
|
'ubuntu-26.04-arm64',
|
||||||
'windows-2022-x64',
|
'windows-2022-x64',
|
||||||
'windows-2025-x64',
|
'windows-2025-x64',
|
||||||
'windows-11-arm64'
|
'windows-11-arm64'
|
||||||
@@ -92390,7 +92394,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"5.
|
|||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
module.exports = /*#__PURE__*/JSON.parse('{"ruby":["1.9.3-p551","2.0.0-p648","2.1.9","2.2.10","2.3.0","2.3.1","2.3.2","2.3.3","2.3.4","2.3.5","2.3.6","2.3.7","2.3.8","2.4.0","2.4.1","2.4.2","2.4.3","2.4.4","2.4.5","2.4.6","2.4.7","2.4.9","2.4.10","2.5.0","2.5.1","2.5.2","2.5.3","2.5.4","2.5.5","2.5.6","2.5.7","2.5.8","2.5.9","2.6.0","2.6.1","2.6.2","2.6.3","2.6.4","2.6.5","2.6.6","2.6.7","2.6.8","2.6.9","2.6.10","2.7.0","2.7.1","2.7.2","2.7.3","2.7.4","2.7.5","2.7.6","2.7.7","2.7.8","3.0.0-preview1","3.0.0-preview2","3.0.0-rc1","3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5","3.0.6","3.0.7","3.1.0-preview1","3.1.0","3.1.1","3.1.2","3.1.3","3.1.4","3.1.5","3.1.6","3.1.7","3.2.0-preview1","3.2.0-preview2","3.2.0-preview3","3.2.0-rc1","3.2.0","3.2.1","3.2.2","3.2.3","3.2.4","3.2.5","3.2.6","3.2.7","3.2.8","3.2.9","3.2.10","3.2.11","3.3.0-preview1","3.3.0-preview2","3.3.0-preview3","3.3.0-rc1","3.3.0","3.3.1","3.3.2","3.3.3","3.3.4","3.3.5","3.3.6","3.3.7","3.3.8","3.3.9","3.3.10","3.3.11","3.4.0-preview1","3.4.0-preview2","3.4.0-rc1","3.4.0","3.4.1","3.4.2","3.4.3","3.4.4","3.4.5","3.4.6","3.4.7","3.4.8","3.4.9","3.5.0-preview1","4.0.0-preview2","4.0.0-preview3","4.0.0","4.0.1","4.0.2","4.0.3","4.0.4","4.0.5","head","debug","asan","asan-release"],"jruby":["9.1.17.0","9.2.9.0","9.2.10.0","9.2.11.0","9.2.11.1","9.2.12.0","9.2.13.0","9.2.14.0","9.2.15.0","9.2.16.0","9.2.17.0","9.2.18.0","9.2.19.0","9.2.20.0","9.2.20.1","9.2.21.0","9.3.0.0","9.3.1.0","9.3.2.0","9.3.3.0","9.3.4.0","9.3.6.0","9.3.7.0","9.3.8.0","9.3.9.0","9.3.10.0","9.3.11.0","9.3.13.0","9.3.14.0","9.3.15.0","9.4.0.0","9.4.1.0","9.4.2.0","9.4.3.0","9.4.4.0","9.4.5.0","9.4.6.0","9.4.7.0","9.4.8.0","9.4.9.0","9.4.10.0","9.4.11.0","9.4.12.0","9.4.12.1","9.4.13.0","9.4.14.0","10.0.0.0","10.0.0.1","10.0.1.0","10.0.2.0","10.0.3.0","10.0.4.0","10.0.5.0","10.1.0.0","head"],"truffleruby":["19.3.0","19.3.1","20.0.0","20.1.0","20.2.0","20.3.0","21.0.0","21.1.0","21.2.0","21.2.0.1","21.3.0","22.0.0.2","22.1.0","22.2.0","22.3.0","22.3.1","23.0.0-preview1","23.0.0","23.1.0","23.1.1","23.1.2","24.0.0","24.0.1","24.0.2","24.1.0","24.1.1","24.1.2","24.2.0","24.2.1","25.0.0","33.0.0","33.0.1","34.0.0","34.0.1","head"],"truffleruby+graalvm":["21.2.0","21.3.0","22.0.0.2","22.1.0","22.2.0","22.3.0","22.3.1","23.0.0-preview1","23.0.0","23.1.0","23.1.1","23.1.2","24.0.0","24.0.1","24.0.2","24.1.0","24.1.1","24.1.2","24.2.0","24.2.1","25.0.0","33.0.0","33.0.1","34.0.0","34.0.1","head"]}');
|
module.exports = /*#__PURE__*/JSON.parse('{"ruby":["1.9.3-p551","2.0.0-p648","2.1.9","2.2.10","2.3.0","2.3.1","2.3.2","2.3.3","2.3.4","2.3.5","2.3.6","2.3.7","2.3.8","2.4.0","2.4.1","2.4.2","2.4.3","2.4.4","2.4.5","2.4.6","2.4.7","2.4.9","2.4.10","2.5.0","2.5.1","2.5.2","2.5.3","2.5.4","2.5.5","2.5.6","2.5.7","2.5.8","2.5.9","2.6.0","2.6.1","2.6.2","2.6.3","2.6.4","2.6.5","2.6.6","2.6.7","2.6.8","2.6.9","2.6.10","2.7.0","2.7.1","2.7.2","2.7.3","2.7.4","2.7.5","2.7.6","2.7.7","2.7.8","3.0.0-preview1","3.0.0-preview2","3.0.0-rc1","3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5","3.0.6","3.0.7","3.1.0-preview1","3.1.0","3.1.1","3.1.2","3.1.3","3.1.4","3.1.5","3.1.6","3.1.7","3.2.0-preview1","3.2.0-preview2","3.2.0-preview3","3.2.0-rc1","3.2.0","3.2.1","3.2.2","3.2.3","3.2.4","3.2.5","3.2.6","3.2.7","3.2.8","3.2.9","3.2.10","3.2.11","3.3.0-preview1","3.3.0-preview2","3.3.0-preview3","3.3.0-rc1","3.3.0","3.3.1","3.3.2","3.3.3","3.3.4","3.3.5","3.3.6","3.3.7","3.3.8","3.3.9","3.3.10","3.3.11","3.4.0-preview1","3.4.0-preview2","3.4.0-rc1","3.4.0","3.4.1","3.4.2","3.4.3","3.4.4","3.4.5","3.4.6","3.4.7","3.4.8","3.4.9","3.5.0-preview1","4.0.0-preview2","4.0.0-preview3","4.0.0","4.0.1","4.0.2","4.0.3","4.0.4","4.0.5","head","debug","asan","asan-release"],"jruby":["9.1.17.0","9.2.9.0","9.2.10.0","9.2.11.0","9.2.11.1","9.2.12.0","9.2.13.0","9.2.14.0","9.2.15.0","9.2.16.0","9.2.17.0","9.2.18.0","9.2.19.0","9.2.20.0","9.2.20.1","9.2.21.0","9.3.0.0","9.3.1.0","9.3.2.0","9.3.3.0","9.3.4.0","9.3.6.0","9.3.7.0","9.3.8.0","9.3.9.0","9.3.10.0","9.3.11.0","9.3.13.0","9.3.14.0","9.3.15.0","9.4.0.0","9.4.1.0","9.4.2.0","9.4.3.0","9.4.4.0","9.4.5.0","9.4.6.0","9.4.7.0","9.4.8.0","9.4.9.0","9.4.10.0","9.4.11.0","9.4.12.0","9.4.12.1","9.4.13.0","9.4.14.0","9.4.15.0","10.0.0.0","10.0.0.1","10.0.1.0","10.0.2.0","10.0.3.0","10.0.4.0","10.0.5.0","10.0.6.0","10.1.0.0","head"],"truffleruby":["19.3.0","19.3.1","20.0.0","20.1.0","20.2.0","20.3.0","21.0.0","21.1.0","21.2.0","21.2.0.1","21.3.0","22.0.0.2","22.1.0","22.2.0","22.3.0","22.3.1","23.0.0-preview1","23.0.0","23.1.0","23.1.1","23.1.2","24.0.0","24.0.1","24.0.2","24.1.0","24.1.1","24.1.2","24.2.0","24.2.1","25.0.0","33.0.0","33.0.1","34.0.0","34.0.1","head"],"truffleruby+graalvm":["21.2.0","21.3.0","22.0.0.2","22.1.0","22.2.0","22.3.0","22.3.1","23.0.0-preview1","23.0.0","23.1.0","23.1.1","23.1.2","24.0.0","24.0.1","24.0.2","24.1.0","24.1.1","24.1.2","24.2.0","24.2.1","25.0.0","33.0.0","33.0.1","34.0.0","34.0.1","head"]}');
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
|
|||||||
@@ -23,8 +23,10 @@ runners = %w[
|
|||||||
macos-15-intel
|
macos-15-intel
|
||||||
ubuntu-22.04
|
ubuntu-22.04
|
||||||
ubuntu-24.04
|
ubuntu-24.04
|
||||||
|
ubuntu-26.04
|
||||||
ubuntu-22.04-arm
|
ubuntu-22.04-arm
|
||||||
ubuntu-24.04-arm
|
ubuntu-24.04-arm
|
||||||
|
ubuntu-26.04-arm
|
||||||
windows-2022
|
windows-2022
|
||||||
windows-2025
|
windows-2025
|
||||||
windows-11-arm
|
windows-11-arm
|
||||||
@@ -38,6 +40,9 @@ macos_arm64_runners, macos_x64_runners = macos_runners.partition { |runner| !run
|
|||||||
ubuntu_arm64_runners, ubuntu_x64_runners = ubuntu_runners.partition { |runner| runner.end_with?('-arm')}
|
ubuntu_arm64_runners, ubuntu_x64_runners = ubuntu_runners.partition { |runner| runner.end_with?('-arm')}
|
||||||
windows_arm64_runners, windows_x64_runners = windows_runners.partition { |runner| runner.end_with?('-arm') }
|
windows_arm64_runners, windows_x64_runners = windows_runners.partition { |runner| runner.end_with?('-arm') }
|
||||||
|
|
||||||
|
asan_runners = ubuntu_x64_runners.grep(/ubuntu-24\.04/)
|
||||||
|
ubuntu2604_runners = ubuntu_runners.grep(/ubuntu-26\.04/)
|
||||||
|
|
||||||
# Versions
|
# Versions
|
||||||
ruby_builder_versions = JSON.load(File.read('ruby-builder-versions.json'))
|
ruby_builder_versions = JSON.load(File.read('ruby-builder-versions.json'))
|
||||||
windows_versions = JSON.load(File.read('windows-versions.json'))
|
windows_versions = JSON.load(File.read('windows-versions.json'))
|
||||||
@@ -61,7 +66,7 @@ matrix += windows_x64_runners.product(ruby_loco_versions)
|
|||||||
|
|
||||||
# asan: latest release + head
|
# asan: latest release + head
|
||||||
asan_versions = %w[asan-release asan]
|
asan_versions = %w[asan-release asan]
|
||||||
matrix += ubuntu_x64_runners.sort.last(1).product(asan_versions)
|
matrix += asan_runners.sort.last(1).product(asan_versions)
|
||||||
|
|
||||||
# https://github.com/ruby/setup-ruby/pull/596#discussion_r1606047680
|
# https://github.com/ruby/setup-ruby/pull/596#discussion_r1606047680
|
||||||
matrix -= (ubuntu_runners - %w[ubuntu-22.04]).product(%w[1.9])
|
matrix -= (ubuntu_runners - %w[ubuntu-22.04]).product(%w[1.9])
|
||||||
@@ -71,6 +76,8 @@ matrix -= ubuntu_runners.product(%w[2.2])
|
|||||||
matrix -= macos_arm64_runners.product(%w[1.9 2.0 2.1 2.2 2.3 2.4 2.5])
|
matrix -= macos_arm64_runners.product(%w[1.9 2.0 2.1 2.2 2.3 2.4 2.5])
|
||||||
# These old Rubies fail to compile or segfault on Linux arm64
|
# These old Rubies fail to compile or segfault on Linux arm64
|
||||||
matrix -= ubuntu_arm64_runners.product(%w[1.9 2.0 2.1 2.2])
|
matrix -= ubuntu_arm64_runners.product(%w[1.9 2.0 2.1 2.2])
|
||||||
|
# These old Rubies fail to compile on ubuntu-26.04
|
||||||
|
matrix -= ubuntu2604_runners.product(%w[1.9 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 3.0 3.1])
|
||||||
# RubyInstaller windows-arm64 builds only exist for Ruby 3.4+
|
# RubyInstaller windows-arm64 builds only exist for Ruby 3.4+
|
||||||
matrix -= windows_arm64_runners.product(%w[2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 3.0 3.1 3.2 3.3])
|
matrix -= windows_arm64_runners.product(%w[2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 3.0 3.1 3.2 3.3])
|
||||||
|
|
||||||
|
|||||||
@@ -22,8 +22,8 @@
|
|||||||
"9.1.17.0",
|
"9.1.17.0",
|
||||||
"9.2.9.0", "9.2.10.0", "9.2.11.0", "9.2.11.1", "9.2.12.0", "9.2.13.0", "9.2.14.0", "9.2.15.0", "9.2.16.0", "9.2.17.0", "9.2.18.0", "9.2.19.0", "9.2.20.0", "9.2.20.1", "9.2.21.0",
|
"9.2.9.0", "9.2.10.0", "9.2.11.0", "9.2.11.1", "9.2.12.0", "9.2.13.0", "9.2.14.0", "9.2.15.0", "9.2.16.0", "9.2.17.0", "9.2.18.0", "9.2.19.0", "9.2.20.0", "9.2.20.1", "9.2.21.0",
|
||||||
"9.3.0.0", "9.3.1.0", "9.3.2.0", "9.3.3.0", "9.3.4.0", "9.3.6.0", "9.3.7.0", "9.3.8.0", "9.3.9.0", "9.3.10.0", "9.3.11.0", "9.3.13.0", "9.3.14.0", "9.3.15.0",
|
"9.3.0.0", "9.3.1.0", "9.3.2.0", "9.3.3.0", "9.3.4.0", "9.3.6.0", "9.3.7.0", "9.3.8.0", "9.3.9.0", "9.3.10.0", "9.3.11.0", "9.3.13.0", "9.3.14.0", "9.3.15.0",
|
||||||
"9.4.0.0", "9.4.1.0", "9.4.2.0", "9.4.3.0", "9.4.4.0", "9.4.5.0", "9.4.6.0", "9.4.7.0", "9.4.8.0", "9.4.9.0", "9.4.10.0", "9.4.11.0", "9.4.12.0", "9.4.12.1", "9.4.13.0", "9.4.14.0",
|
"9.4.0.0", "9.4.1.0", "9.4.2.0", "9.4.3.0", "9.4.4.0", "9.4.5.0", "9.4.6.0", "9.4.7.0", "9.4.8.0", "9.4.9.0", "9.4.10.0", "9.4.11.0", "9.4.12.0", "9.4.12.1", "9.4.13.0", "9.4.14.0", "9.4.15.0",
|
||||||
"10.0.0.0", "10.0.0.1", "10.0.1.0", "10.0.2.0", "10.0.3.0", "10.0.4.0", "10.0.5.0",
|
"10.0.0.0", "10.0.0.1", "10.0.1.0", "10.0.2.0", "10.0.3.0", "10.0.4.0", "10.0.5.0", "10.0.6.0",
|
||||||
"10.1.0.0",
|
"10.1.0.0",
|
||||||
"head"
|
"head"
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ versions = JSON.load(hash).transform_keys(&:to_sym)
|
|||||||
ONLY_LATEST_PATCH = ENV['ONLY_LATEST_PATCH']
|
ONLY_LATEST_PATCH = ENV['ONLY_LATEST_PATCH']
|
||||||
|
|
||||||
def filter(versions)
|
def filter(versions)
|
||||||
versions -= %w[head]
|
versions -= %w[head debug asan asan-release 3.5.0-preview1]
|
||||||
if ONLY_LATEST_PATCH
|
if ONLY_LATEST_PATCH
|
||||||
versions = versions.group_by { |v| v[/^\d+\.\d+/] }.map { _2.last }
|
versions = versions.group_by { |v| v[/^\d+\.\d+/] }.map { _2.last }
|
||||||
end
|
end
|
||||||
@@ -29,5 +29,7 @@ puts filter(versions[:"truffleruby+graalvm"]).map { |v| "truffleruby+graalvm-#{v
|
|||||||
|
|
||||||
puts
|
puts
|
||||||
puts filter(versions[:jruby]).map { |v| "jruby-#{v}" }.join(', ')
|
puts filter(versions[:jruby]).map { |v| "jruby-#{v}" }.join(', ')
|
||||||
|
|
||||||
|
puts
|
||||||
puts "For Windows:"
|
puts "For Windows:"
|
||||||
puts filter(versions[:jruby]).join(', ')
|
puts filter(versions[:jruby]).join(', ')
|
||||||
|
|||||||
Reference in New Issue
Block a user