Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions generate-test-matrix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ def unique_versions(versions, segment_count, *symbolic)
macos_runners = runners.select { |runner| runner.start_with?('macos-') }
ubuntu_runners = runners.select { |runner| runner.start_with?('ubuntu-') }
windows_runners, non_windows_runners = runners.partition { |runner| runner.start_with?('windows-') }
macos_intel_runners = runners.grep(/macos.+intel/)

macos_arm64_runners, _macos_x64_runners = macos_runners.partition { |runner| !runner.end_with?('-intel')}
macos_arm64_runners, macos_x64_runners = macos_runners.partition { |runner| !runner.end_with?('-intel')}
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') }

Expand Down Expand Up @@ -75,6 +74,6 @@ def unique_versions(versions, segment_count, *symbolic)
# 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])
# TruffleRuby 34+ does not support macOS Intel
matrix -= macos_intel_runners.product(%w[truffleruby-head truffleruby+graalvm-head])
matrix -= macos_x64_runners.product(%w[truffleruby-head truffleruby+graalvm-head])

puts(JSON.generate(matrix.sort.map { |os, ruby| { os:, ruby: } }))