summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2022-11-11 18:38:06 +0200
committerJan Ekström <jeebjp@gmail.com>2022-11-11 21:25:03 +0200
commit8758d96a339d9cdeb856c17180dfafd71bf3c1f4 (patch)
treedc0e6f5f92d763e39666357bfd09cb7827021f30
parent33136c276c550a3a38bb36f512718a5fd2fd82ee (diff)
downloadmpv-8758d96a339d9cdeb856c17180dfafd71bf3c1f4.tar.bz2
mpv-8758d96a339d9cdeb856c17180dfafd71bf3c1f4.tar.xz
github/workflows: force deletion of existing upstream python symlinks on macOS
This way each time a new Python version is installed via Homebrew , we don't get CI failures due to the upstream Python distribution also being installed. Ref: actions/runner-images#6459 Ref: actions/runner-images#6507 Ref: actions/runner-images#2322
-rw-r--r--.github/workflows/build.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 718b463c1f..2ce7db0334 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -75,6 +75,11 @@ jobs:
steps:
- uses: actions/checkout@v3
+ - name: Remove stray upstream python binary symlinks under /usr/local
+ run: |
+ find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete -print
+ brew unlink python && brew link --overwrite python
+
- name: Install dependencies
run: |
brew update