Skip to content

Commit

Permalink
Try to fix homebrew CI issue. (#1212)
Browse files Browse the repository at this point in the history
The version in the runner and expected by homebrew regularly get out-of-sync and then crash the CI. The workaround is to attempt updating python; then force the rest of the python update; and then continue with the actual `brew install`.
  • Loading branch information
1uc committed Mar 11, 2024
1 parent 26899cc commit 6954d40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/nmodl-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ jobs:
- name: Install homebrew packages
if: startsWith(matrix.config.os, 'macOS')
run: |
brew install python@3.12 || true
brew link --overwrite python@3.12
brew install ccache coreutils bison boost flex ninja
echo /usr/local/opt/flex/bin:/usr/local/opt/bison/bin >> $GITHUB_PATH
# Taken from https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
Expand Down

0 comments on commit 6954d40

Please sign in to comment.