From 92ab1f01bcb168aaaaa36ce7bdb43276edb03979 Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Mon, 19 Aug 2024 18:17:14 +0000 Subject: [PATCH] ci/macos: fix homebrew packages install (#12382) --- .github/workflows/build.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a17268c9e..40c0be1c2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -68,6 +70,13 @@ jobs: sdl2 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