From 115deefd2dd6d75675d291bcc47aa218eb302147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=BCtzel?= Date: Thu, 17 Oct 2024 10:53:09 +0200 Subject: [PATCH] CI (macos): Work around conflict between pre-installed and Homebrew Python. Force overwriting files from the pre-installed version of Python. They conflict with the files from Homebrew's versions of Python. --- .github/workflows/build-macos-homebrew.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build-macos-homebrew.yaml b/.github/workflows/build-macos-homebrew.yaml index 469aae8ce1..adc52fd0f6 100644 --- a/.github/workflows/build-macos-homebrew.yaml +++ b/.github/workflows/build-macos-homebrew.yaml @@ -35,10 +35,18 @@ jobs: uses: actions/checkout@v4 - name: install dependencies + + # Homebrew's Python conflicts with the Python that comes pre-installed + # on the GitHub runners. Some of the dependencies depend on different + # versions of Homebrew's Python. Enforce using the ones from Homebrew + # to avoid errors on updates. + # See: https://github.com/orgs/Homebrew/discussions/3928 + # It looks like "gfortran" isn't working correctly unless "gcc" is # re-installed. run: | brew update + brew install --overwrite python@3.12 python@3.13 brew reinstall gcc brew install \ cmake libomp openblas open-mpi suitesparse \