Skip to content

Commit

Permalink
Deploy Sequoia runner for formulae with Sequoia bottles
Browse files Browse the repository at this point in the history
This will allow us to avoid the loss of bottles to Homebrew/core PRs.
  • Loading branch information
carlocab committed Sep 12, 2024
1 parent b78f4b9 commit 9141bb0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/github_runner_matrix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def create_runner(platform, arch, spec, macos_version = nil)
runner.freeze
end

NEWEST_HOMEBREW_CORE_MACOS_RUNNER = :sonoma
NEWEST_HOMEBREW_CORE_MACOS_RUNNER = :sequoia
OLDEST_HOMEBREW_CORE_MACOS_RUNNER = :monterey
NEWEST_HOMEBREW_CORE_INTEL_MACOS_RUNNER = :sonoma

Expand Down
5 changes: 5 additions & 0 deletions Library/Homebrew/test_runner_formula.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ def versioned_macos_requirement

sig { params(macos_version: MacOSVersion).returns(T::Boolean) }
def compatible_with?(macos_version)
# Require a Sequoia bottle before deploying a Sequoia runner.
tag = Utils::Bottles::Tag.new(arch: :arm64, system: :sequoia)
# Comparision should be `==` and not `>=`, but Sorbet doesn't like it.
return false if macos_version >= :sequoia && !formula.bottle_specification.tag?(tag, no_older_versions: true)

# Assign to a variable to assist type-checking.
requirement = versioned_macos_requirement
return true if requirement.blank?
Expand Down

0 comments on commit 9141bb0

Please sign in to comment.