Skip to content

Commit 9034c3a

Browse files
CI : Remove all pre-installed homebrew packages
1 parent efc1581 commit 9034c3a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,13 @@ jobs:
8080

8181
- name: Install toolchain (macOS)
8282
run: |
83+
# Remove all pre-installed homebrew packages.
84+
brew remove --force $(brew list --formula)
85+
brew remove --cask --force $(brew list)
8386
# Install build requirements.
87+
brew install pipx
8488
pipx install scons==4.6.0
89+
brew install ninja
8590
brew install gpatch
8691
echo "/opt/homebrew/opt/gpatch/libexec/gnubin" >> $GITHUB_PATH
8792
brew install bison
@@ -94,10 +99,7 @@ jobs:
9499
# our selected Xcode version.
95100
sudo rm -rf /Library/Developer/CommandLineTools
96101
sudo rm -rf /Applications/Python\ 3.11
97-
# Remove little-cms2 to prevent our LibRaw builds from finding it.
98-
brew uninstall --ignore-dependencies little-cms2
99102
# Pin CMake to 3.31.6
100-
brew uninstall cmake
101103
brew tap-new --no-git "local/pinned" >/dev/null
102104
cmakeDir="$(brew --repo "local/pinned")/Formula"
103105
mkdir -p "$cmakeDir"

0 commit comments

Comments
 (0)