Skip to content

Commit b8bbc6a

Browse files
SMillerDevCopilot
andauthored
Update Library/Homebrew/dev-cmd/generate-cask-ci-matrix.rb
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b227a4e commit b8bbc6a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Library/Homebrew/dev-cmd/generate-cask-ci-matrix.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -158,17 +158,17 @@ def filter_runners(cask)
158158
def architectures(cask:, os: :macos)
159159
architectures = []
160160
[:arm, :intel].each do |arch|
161-
tag = Utils::Bottles::Tag.new(system: os, arch: arch)
162-
Homebrew::SimulateSystem.with_tag(tag) do
163-
cask.refresh
161+
tag = Utils::Bottles::Tag.new(system: os, arch: arch)
162+
Homebrew::SimulateSystem.with_tag(tag) do
163+
cask.refresh
164164

165-
if cask.depends_on.arch.blank?
166-
architectures = RUNNERS.keys.map { |r| r.fetch(:arch).to_sym }.uniq.sort
167-
next
168-
end
169-
170-
architectures = cask.depends_on.arch.map { |arch| arch[:type] }
165+
if cask.depends_on.arch.blank?
166+
architectures = RUNNERS.keys.map { |r| r.fetch(:arch).to_sym }.uniq.sort
167+
next
171168
end
169+
170+
architectures = cask.depends_on.arch.map { |arch| arch[:type] }
171+
end
172172
rescue ::Cask::CaskInvalidError
173173
# Can't read cask for this system-arch combination.
174174
end

0 commit comments

Comments
 (0)