ci(macos): brew update before macos.sh so both legs see current core

The macOS runner images set HOMEBREW_NO_AUTO_UPDATE in their bashrc and
carry a homebrew-core snapshot from image build time. Today the macos-15
image (20260828) installs protobuf 36.0 while macos-26 (20260707) still
installs 35.1, so the two legs of this workflow cannot both be
compatible with any single gz tap pin. The pin is refreshed against tap
HEAD, which OSRF keeps consistent with current homebrew-core, so update
core before installing. Dev machines already do this through brew's
auto-update.

Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Ramon Roche <mrpollo@gmail.com>
This commit is contained in:
Ramon Roche committed 2026-09-04 13:26:30 -07:00
1 parent 832f8ebac8
commit 2d6329fab2
1 file changed
+6
+6
View File
@@ -49,6 +49,12 @@ jobs:
- name: setup
run: |
# Runner images ship Homebrew with auto-update off and a formula
# snapshot from image build time, so without this the two legs
# install whatever homebrew-core each image was built with. The gz
# tap pin is only valid against current homebrew-core, see
# Tools/setup/gz-tap-pin.txt.
brew update
./Tools/setup/macos.sh --sim-tools
echo "${{ github.workspace }}/.venv/bin" >> $GITHUB_PATH