summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorAndy Clayton <q3aiml@gmail.com>2023-01-02 11:31:07 -0600
committerMartin Michlmayr <tbm@cyrius.com>2023-01-09 17:09:17 +0800
commit1eec9f86667cad3b0bbafb82a83739a0d30ca09f (patch)
treef3f1a07d6bf15295c300cc6c5d314a1aec2630aa /.github/workflows
parent3dc3d70ebcca73da73f95acd86594e9c5443d4ef (diff)
downloadfork-ledger-1eec9f86667cad3b0bbafb82a83739a0d30ca09f.tar.gz
fork-ledger-1eec9f86667cad3b0bbafb82a83739a0d30ca09f.tar.bz2
fork-ledger-1eec9f86667cad3b0bbafb82a83739a0d30ca09f.zip
fix brew link error on mac CI
The github mac runner images added python 3.11 but, unlike 3.10, not via brew. This causes brew install to fail with link conflict errors now that boost-python3 switched over to 3.11. Workaround this, and future python brew link errors, by overwriting all links for python packages. https://github.com/Homebrew/homebrew-core/commit/8c79089ae410bcd38065dfa3748bbcdb64b228d2 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
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/cmake.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
index fc8937f7..f055fa9f 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