mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-14 15:04:20 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6647273ce9 | ||
|
|
071acb9122 |
@@ -35,7 +35,7 @@ The action works for all [GitHub-hosted runners](https://help.github.com/en/acti
|
|||||||
|
|
||||||
| Operating System | Versions |
|
| Operating System | Versions |
|
||||||
| ----------- | -------- |
|
| ----------- | -------- |
|
||||||
| Ubuntu | `ubuntu-latest` (= `ubuntu-18.04`), `ubuntu-16.04` |
|
| Ubuntu | `ubuntu-20.04`, `ubuntu-latest` (= `ubuntu-18.04`), `ubuntu-16.04` |
|
||||||
| macOS | `macos-latest` |
|
| macOS | `macos-latest` |
|
||||||
| Windows | `windows-latest` |
|
| Windows | `windows-latest` |
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
hash = File.read('ruby-builder-versions.js')[/\bversions = {[^}]+}/]
|
||||||
|
versions = eval hash
|
||||||
|
|
||||||
|
by_minor = versions[:ruby].group_by { |v| v[/^\d\.\d/] }
|
||||||
|
|
||||||
|
p by_minor['2.2']
|
||||||
|
p by_minor['2.3']
|
||||||
|
|
||||||
|
(4..7).each do |minor|
|
||||||
|
p by_minor["2.#{minor}"].map { |v| "ruby-#{v}" }
|
||||||
|
end
|
||||||
|
|
||||||
|
p (versions[:jruby] - %w[head]).map { |v| "jruby-#{v}" }
|
||||||
|
|
||||||
|
p (versions[:truffleruby] - %w[head]).map { |v| "truffleruby-#{v}" }
|
||||||
Reference in New Issue
Block a user