Skip to content

Commit

Permalink
CI (macos): Work around conflict between pre-installed and Homebrew P…
Browse files Browse the repository at this point in the history
…ython.

Force overwriting files from the pre-installed version of Python. They
conflict with the files from Homebrew's versions of Python.
  • Loading branch information
mmuetzel committed Oct 17, 2024
1 parent c00b8e5 commit 115deef
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-macos-homebrew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected] [email protected]
brew reinstall gcc
brew install \
cmake libomp openblas open-mpi suitesparse \
Expand Down

0 comments on commit 115deef

Please sign in to comment.