Skip to content

Commit

Permalink
ci/macos: fix homebrew packages install (#1909)
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pierre committed Aug 19, 2024
1 parent 3cc725c commit 3ef0b58
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@ jobs:

- name: Install dependencies
run: |
set -x
python3 -m pip install --disable-pip-version-check meson ruamel.yaml
wget -O ninjatracing.zip https://github.com/nico/ninjatracing/archive/a669e3644cf22b29cbece31dbed2cfbf34e5f48e.zip
unzip -j ninjatracing.zip '*/ninjatracing'
install -m755 ninjatracing /usr/local/bin/
rm ninjatracing*
# Install brew packages.
packages=(
autoconf
automake
Expand All @@ -67,6 +69,13 @@ jobs:
pkg-config
util-linux
)
# Don't auto-update.
export HOMEBREW_NO_AUTO_UPDATE=1
# Don't upgrade already installed formulas.
export HOMEBREW_NO_INSTALL_UPGRADE=1
# Remove some installed packages to prevent brew
# from attempting (and failing) to upgrade them.
brew uninstall gradle maven
brew install --formula --quiet "${packages[@]}"
- name: Update PATH
Expand Down

0 comments on commit 3ef0b58

Please sign in to comment.