Skip to content

Commit 285500d

Browse files
authored
fix system image library uninstallation on macos x86 (#7622)
1 parent 15b4562 commit 285500d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/scripts/setup-env.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ if [[ "${OS_TYPE}" == "macos" && $(uname -m) == x86_64 ]]; then
2727
# The x86 macOS runners, e.g. the GitHub Actions native "macos-12" runner, has some JPEG and PNG libraries
2828
# installed by default that interfere with our build. We uninstall them here and use the one from conda below.
2929
IMAGE_LIBS=$(brew list | grep -E "jpeg|png")
30-
echo "${IMAGE_LIBS}"
31-
for lib in "${IMAGE_LIBS}"; do
32-
brew uninstall --ignore-dependencies --force "${lib}" || true
30+
for lib in $IMAGE_LIBS; do
31+
brew uninstall --ignore-dependencies --force "${lib}"
3332
done
3433
echo '::endgroup::'
3534
fi

0 commit comments

Comments
 (0)