From f887fb3d0edd6f4f174c5165d312d1da6371b9b8 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Wed, 11 Oct 2023 18:27:39 +0200 Subject: [PATCH] Update versions-strings-for-builder.rb --- versions-strings-for-builder.rb | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/versions-strings-for-builder.rb b/versions-strings-for-builder.rb index 72762cef5..6a5000c28 100644 --- a/versions-strings-for-builder.rb +++ b/versions-strings-for-builder.rb @@ -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} }"