Skip to content

Commit

Permalink
Patch macOS CI
Browse files Browse the repository at this point in the history
Address Homebrew and Python issues
  • Loading branch information
williamfgc committed Mar 28, 2024
1 parent 03e821b commit c04590f
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/ci-github-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,16 +154,22 @@ jobs:
steps:
- name: Checkout Action
uses: actions/checkout@v4

- name: Set Python Version
uses: actions/setup-python@v4
with:
python-version: "3.10"


- run: brew update

# github actions overwrites brew's python. Force it to reassert itself, by running in a separate step.
# From https://github.com/mesonbuild/meson/blob/master/.github/workflows/macos.yml#L87-L92
- name: Install Homebrew Python
run: |
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
sudo rm -rf /Library/Frameworks/Python.framework/
brew install --force python3 && brew unlink python3 && brew unlink python3 && brew link --overwrite python3
find /usr/local/Cellar/python* -name EXTERNALLY-MANAGED -print0 | xargs -0 rm -vf

- name: Setup Dependencies
run: |
brew install ninja hdf5 fftw boost
pip3 install numpy h5py pandas
python3 -m pip install numpy h5py pandas
- name: Configure
run: tests/test_automation/github-actions/ci/run_step.sh configure
Expand Down

0 comments on commit c04590f

Please sign in to comment.