Skip to content

Commit 8758d96

Browse files
committed
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
1 parent 33136c2 commit 8758d96

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ jobs:
7575
steps:
7676
- uses: actions/checkout@v3
7777

78+
- name: Remove stray upstream python binary symlinks under /usr/local
79+
run: |
80+
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete -print
81+
brew unlink python && brew link --overwrite python
82+
7883
- name: Install dependencies
7984
run: |
8085
brew update

0 commit comments

Comments
 (0)