Skip to content

Commit

Permalink
Fix workflow runners on macos (#294)
Browse files Browse the repository at this point in the history
workaround inconsistency problems between github runner image and brew on macos

relates: actions/setup-python#577
  • Loading branch information
hendrikmuhs authored Mar 15, 2024
1 parent a93fa71 commit 2254d5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/keyvi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
if: runner.os == 'macOS'
run: |
brew update
# workaround for https://github.com/actions/setup-python/issues/577
brew list -1 | grep python | while read formula; do brew unlink $formula; brew link --overwrite $formula; done
brew install zlib snappy boost
- name: checkout from git
uses: actions/checkout@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/python-cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ jobs:
- name: install mac dependencies
if: ${{ runner.os == 'macOS' }}
# 2nd command: workaround https://github.com/actions/setup-python/issues/577
run: |
brew update && \
brew list -1 | grep python | while read formula; do brew unlink $formula; brew link --overwrite $formula; done && \
brew install ccache
- name: install mac dependencies X86_64
Expand Down

0 comments on commit 2254d5c

Please sign in to comment.