Skip to content

Commit

Permalink
Merge pull request #1208 from Homebrew/sequoia-debug
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocab authored Sep 10, 2024
2 parents 99d840c + 1d87f4b commit 6aaf6ed
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/step.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,23 @@ def run(dry_run: false, fail_fast: false)
return
end

if OS.mac? && MacOS.version == :sequoia &&
ENV["GITHUB_REPOSITORY_OWNER"]&.casecmp?("homebrew") &&
output.include?("LoadError") &&
output.include?("not a mach-o file")
time_slept = 0
sleep_time = 300
sleep_for = 3600
while time_slept < sleep_for
puts GitHub::Actions::Annotation.new(
:notice,
"ping @Bo98, please investigate. Continuing in #{sleep_for - time_slept}s.",
)
time_slept += sleep_time
sleep sleep_time
end
end

os_string = if OS.mac?
str = +"macOS #{MacOS.version.pretty_name} (#{MacOS.version})"
str << " on Apple Silicon" if Hardware::CPU.arm?
Expand Down

0 comments on commit 6aaf6ed

Please sign in to comment.