Skip to content

Commit

Permalink
work around brew erroring in github actions (#317)
Browse files Browse the repository at this point in the history
* See actions/setup-python#577
* this seemed to be a popular fix
  • Loading branch information
mgeplf authored Nov 22, 2023
1 parent f5737b6 commit f3049f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/publish-sdist-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ jobs:
env:
MACOSX_DEPLOYMENT_TARGET: '10.13'
CIBW_BEFORE_BUILD: |
# Unlink and re-link to prevent errors when GitHub macOS runner images
# install Python outside of brew.
brew list -1 | grep python | while read formula; do brew unlink $formula; brew link --overwrite $formula; done
brew update
brew --version
brew install cmake
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ jobs:

- name: Install packages on MacOS
run: |
# Unlink and re-link to prevent errors when GitHub macOS runner images
# install Python outside of brew; See actions/setup-python#577
brew list -1 | grep python | while read formula; do brew unlink $formula; brew link --overwrite $formula; done
brew update
brew install cmake || true # macos image has cmake installed, but a new version may exist; ignore it if so
brew install doxygen
Expand Down

0 comments on commit f3049f9

Please sign in to comment.