From 2d6329fab2c60cd94f4cfd44db9a417383632a04 Mon Sep 17 00:00:00 2001 From: Ramon Roche Date: Fri, 4 Sep 2026 10:32:40 -0700 Subject: [PATCH] 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 --- .github/workflows/compile_macos.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/compile_macos.yml b/.github/workflows/compile_macos.yml index 87180924d42..a063ca7bf9e 100644 --- a/.github/workflows/compile_macos.yml +++ b/.github/workflows/compile_macos.yml @@ -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