Skip to content

Commit 2327de0

Browse files
committed
TruffleRuby 34+ does not support macOS Intel
1 parent 3ff19f5 commit 2327de0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

generate-test-matrix.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def unique_versions(versions, segment_count, *symbolic)
3333
macos_runners = runners.select { |runner| runner.start_with?('macos-') }
3434
ubuntu_runners = runners.select { |runner| runner.start_with?('ubuntu-') }
3535
windows_runners, non_windows_runners = runners.partition { |runner| runner.start_with?('windows-') }
36+
macos_intel_runners = runners.grep(/macos.+intel/)
3637

3738
macos_arm64_runners, _macos_x64_runners = macos_runners.partition { |runner| !runner.end_with?('-intel')}
3839
ubuntu_arm64_runners, ubuntu_x64_runners = ubuntu_runners.partition { |runner| runner.end_with?('-arm')}
@@ -73,5 +74,7 @@ def unique_versions(versions, segment_count, *symbolic)
7374
matrix -= ubuntu_arm64_runners.product(%w[1.9 2.0 2.1 2.2])
7475
# RubyInstaller windows-arm64 builds only exist for Ruby 3.4+
7576
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])
77+
# TruffleRuby 34+ does not support macOS Intel
78+
matrix -= macos_intel_runners.product(%w[truffleruby-head truffleruby+graalvm-head])
7679

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

0 commit comments

Comments
 (0)