Skip to content

Commit

Permalink
Update versions-strings-for-builder.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Oct 11, 2023
1 parent b1c3bf6 commit f887fb3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions versions-strings-for-builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@

by_minor = versions[:ruby].group_by { |v| v[/^\d\.\d/] }

(1..7).each do |minor|
p by_minor["2.#{minor}"].map { |v| "ruby-#{v}" }
by_minor.each_pair do |minor, versions|
puts versions.map { |v| "ruby-#{v}" }.join(', ') if minor
end

puts
p (versions[:truffleruby] - %w[head]).map { |v| "truffleruby-#{v}" }
puts (versions[:truffleruby] - %w[head]).map { |v| "truffleruby-#{v}" }.join(', ')

puts
p (versions[:jruby] - %w[head]).map { |v| "jruby-#{v}" }
puts (versions[:"truffleruby+graalvm"] - %w[head]).map { |v| "truffleruby+graalvm-#{v}" }.join(', ')

puts
puts (versions[:jruby] - %w[head]).map { |v| "jruby-#{v}" }.join(', ')

(versions[:jruby] - %w[head]).each do |v|
puts "- { os: windows-latest, jruby-version: #{v}, ruby: jruby-#{v} }"
Expand Down

0 comments on commit f887fb3

Please sign in to comment.