Skip to content

Commit b731a43

Browse files
committed
CI macOS: hide also arm64 Homebrew for distcheck
Make the bug <#478> fail with distcheck. The arm64 Homebrew uses different location than x86_64 so that it didn't catch the problems (Homebrew libs were still visible).
1 parent 1f3438e commit b731a43

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ccpp.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,12 @@ jobs:
212212
run: |
213213
for n in lib opt; do if [ -d "/usr/local/$n" ]
214214
then sudo mv /usr/local/$n /usr/local/$n-; fi; done # hide local libs
215+
if [ -d /opt/homebrew ]; then sudo mv /opt/homebrew /opt/homebrew-; fi
215216
sudo mv $(xcrun --show-sdk-path)/System/Library/Frameworks /tmp/FRMWK
216217
make distcheck TARGET=uv-qt.app/Contents/MacOS/uv REFLECTOR_TARGET=uv-qt.app/Contents/MacOS/hd-rum-transcode GUI_EXE=uv-qt.app/Contents/MacOS/uv-qt
217218
for n in lib opt; do if [ -d "/usr/local/$n-" ]
218219
then sudo mv /usr/local/$n- /usr/local/$n; fi; done # return back
220+
if [ -d /opt/homebrew- ]; then sudo mv /opt/homebrew- /opt/homebrew; fi
219221
sudo mv /tmp/FRMWK $(xcrun --show-sdk-path)/System/Library/Frameworks
220222
- name: sign+notarize
221223
if: env.KEY_CHAIN != null

0 commit comments

Comments
 (0)