From 4a2b00aa231d9cc0bb50c467431c1eecb9c1a631 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Wed, 6 Mar 2024 04:40:27 +0000 Subject: [PATCH] cmd/lib/matrix: handle arch edge case --- cmd/lib/ci_matrix.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/lib/ci_matrix.rb b/cmd/lib/ci_matrix.rb index 82be903207..d04998ae11 100644 --- a/cmd/lib/ci_matrix.rb +++ b/cmd/lib/ci_matrix.rb @@ -180,7 +180,7 @@ module CiMatrix cask_content = path.read runners, multi_os = runners(cask_content: cask_content) - runners.product(architectures(cask_content: cask_content)).map do |runner, arch| + runners.product(architectures(cask_content: cask_content)).filter_map do |runner, arch| native_runner_arch = arch == runner.fetch(:arch) # If it's just a single OS test then we can just use the two real arch runners. next if !native_runner_arch && !multi_os