diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index fc8937f7b..f055fa9f5 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -43,6 +43,15 @@ jobs: - if: runner.os == 'macOS' name: Mac Dependencies run: | + # Unlink and re-link to prevent errors when github mac runner images + # install python outside of brew, for example: + # https://github.com/orgs/Homebrew/discussions/3895 + # https://github.com/actions/setup-python/issues/577 + # https://github.com/actions/runner-images/issues/6459 + # https://github.com/actions/runner-images/issues/6507 + # https://github.com/actions/runner-images/issues/2322 + brew list -1 | grep python | while read formula; do brew unlink $formula; brew link --overwrite $formula; done + brew update brew install boost boost-python3 gmp mpfr gpgme