mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
github_runner_matrix: emulate plaform when sending compatible?
requests
Signed-off-by: botantony <antonsm21@gmail.com>
This commit is contained in:
parent
bbac5be4d3
commit
d8144ce5e3
@ -255,8 +255,18 @@ class GitHubRunnerMatrix
|
||||
@testing_formulae.select do |formula|
|
||||
next false if macos_version && !formula.compatible_with?(macos_version)
|
||||
|
||||
formula.public_send(:"#{platform}_compatible?") &&
|
||||
formula.public_send(:"#{arch}_compatible?")
|
||||
simulate_arch = case arch
|
||||
when :x86_64
|
||||
:intel
|
||||
when :arm64
|
||||
:arm
|
||||
else
|
||||
:dunno
|
||||
end
|
||||
Homebrew::SimulateSystem.with(os: platform, arch: simulate_arch) do
|
||||
formula.public_send(:"#{platform}_compatible?") &&
|
||||
formula.public_send(:"#{arch}_compatible?")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user