@@ -139,6 +139,16 @@ jobs:
139139 version : 14
140140 platform : x64
141141
142+ - name : Unbreak Python in GHA (MacOS 13 image)
143+ if : matrix.config.os == 'macos' && matrix.config.os-version == 13
144+ run : |
145+ # TODO: remove this, after it works again
146+ # A workaround for "The `brew link` step did not complete successfully" error.
147+ # See e.g. https://github.com/Homebrew/homebrew-core/issues/165793#issuecomment-1991817938
148+ find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
149+ sudo rm -rf /Library/Frameworks/Python.framework/
150+ brew install --force python3 && brew unlink python3 && brew unlink python3 && brew link --overwrite python3
151+
142152 - name : Setup Clang (MacOS)
143153 if : matrix.config.os == 'macos'
144154 run : |
@@ -155,16 +165,6 @@ jobs:
155165 echo "CXX_LD=lld" >> "$GITHUB_ENV"
156166 echo "OBJC_LD=lld" >> "$GITHUB_ENV"
157167
158- - name : Unbreak Python in GHA (MacOS 13 image)
159- if : matrix.config.os == 'macos' && matrix.config.os-version == 13
160- run : |
161- # TODO: remove this, after it works again
162- # A workaround for "The `brew link` step did not complete successfully" error.
163- # See e.g. https://github.com/Homebrew/homebrew-core/issues/165793#issuecomment-1991817938
164- find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
165- sudo rm -rf /Library/Frameworks/Python.framework/
166- brew install --force python3 && brew unlink python3 && brew unlink python3 && brew link --overwrite python3
167-
168168 - name : Setup meson (MacOS)
169169 if : matrix.config.os == 'macos'
170170 run : |
0 commit comments