Skip to content

Commit 6089062

Browse files
committed
ci: improve the workaround for broken Python in macOS images
Related: https://github.com/actions/setup-python/issues/577
1 parent 46e434c commit 6089062

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/macos.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ jobs:
2828
- name: Install dependencies
2929
run: |
3030
# workaround for https://github.com/actions/setup-python/issues/577
31-
brew unlink python3
32-
brew link --overwrite python3
31+
for pkg in $(brew list | grep '^python@'); do
32+
brew unlink "$pkg"
33+
brew link --overwrite "$pkg"
34+
done
3335
3436
brew update
3537
brew install boost boost-python3 help2man

0 commit comments

Comments
 (0)