Skip to content

Commit b7f05fd

Browse files
committed
ci: Disable eager upgrades from Homebrew
GitHub and Azure's images install a pre-existing Python, which Homebrew attempts to upgrade if any of the packages we want to install depend on it. Unfortunately, this may cause conflicts on Python's symlinks, so stop Homebrew from trying to do an automatic upgrade.
1 parent 9c88d13 commit b7f05fd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/tests.yml

+1
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ jobs:
158158
;;
159159
macOS)
160160
brew update
161+
export HOMEBREW_NO_INSTALL_UPGRADE=1
161162
brew install ccache ghostscript ninja
162163
# The macOS 12 images have an older Python, and this causes homebrew to generate conflicts.
163164
# We'll just skip GTK for now, to not pull in Python updates.

azure-pipelines.yml

+1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ stages:
111111
;;
112112
Darwin)
113113
brew update
114+
export HOMEBREW_NO_INSTALL_UPGRADE=1
114115
brew install --cask xquartz
115116
brew install ccache ffmpeg imagemagick mplayer ninja pkg-config
116117
brew install --cask font-noto-sans-cjk-sc

0 commit comments

Comments
 (0)