Skip to content

Commit 37af9b6

Browse files
authored
Merge pull request #19567 from Homebrew/linux-job-names
github_runner_matrix: include arch in Linux job names
2 parents e5406f7 + 7274fb1 commit 37af9b6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Library/Homebrew/github_runner_matrix.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def linux_runner_spec(arch)
9292
end
9393

9494
LinuxRunnerSpec.new(
95-
name: "Linux",
95+
name: "Linux #{arch}",
9696
runner: linux_runner,
9797
container: {
9898
image: "ghcr.io/homebrew/ubuntu22.04:master",

Library/Homebrew/test/github_runner_matrix_spec.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090

9191
expect(runner_matrix.runners.all?(&:active)).to be(false)
9292
expect(runner_matrix.runners.any?(&:active)).to be(true)
93-
expect(get_runner_names(runner_matrix)).to eq(["Linux"])
93+
expect(get_runner_names(runner_matrix)).to eq(["Linux x86_64"])
9494
end
9595
end
9696

@@ -139,7 +139,7 @@
139139

140140
expect(runner_matrix.runners.all?(&:active)).to be(false)
141141
expect(runner_matrix.runners.any?(&:active)).to be(true)
142-
expect(get_runner_names(runner_matrix).sort).to eq(["Linux", "macOS #{v}-arm64"])
142+
expect(get_runner_names(runner_matrix).sort).to eq(["Linux x86_64", "macOS #{v}-arm64"])
143143
end
144144
end
145145
end
@@ -276,7 +276,7 @@
276276
allow(Formula).to receive(:all).and_return([testball, testball_depender_linux].map(&:formula))
277277

278278
matrix = described_class.new([testball], ["deleted"], all_supported: false, dependent_matrix: true)
279-
expect(get_runner_names(matrix)).to eq(["Linux"])
279+
expect(get_runner_names(matrix)).to eq(["Linux x86_64"])
280280
end
281281
end
282282

0 commit comments

Comments
 (0)