Skip to content

Commit fd63235

Browse files
committed
ci: fix macos 13 brew installation
1 parent ff54dd5 commit fd63235

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,17 @@ jobs:
7575
echo "CXX_LD=lld" >> "$GITHUB_ENV"
7676
echo "OBJC_LD=lld" >> "$GITHUB_ENV"
7777
78+
- name: Unbreak Python in GHA (MacOS 13 image)
79+
if: matrix.config.os == 'macos' && matrix.config.os-version == 13
80+
run: |
81+
# TODO: remove this, after it works again
82+
# A workaround for "The `brew link` step did not complete successfully" error.
83+
# See e.g. https://github.com/Homebrew/homebrew-core/issues/165793#issuecomment-1991817938
84+
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
85+
sudo rm -rf /Library/Frameworks/Python.framework/
86+
brew install --force python3 && brew unlink python3 && brew unlink python3 && brew link --overwrite python3
87+
88+
7889
- name: Setup meson (MacOS)
7990
if: matrix.config.os == 'macos'
8091
run: |

0 commit comments

Comments
 (0)