Skip to content

Commit 8c5b877

Browse files
committed
[DEBUG] try revert linpng uninstallation on macos-12
1 parent e5bf7cf commit 8c5b877

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/scripts/setup-env.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ esac
2424

2525
if [[ "${OS_TYPE}" == "macos" && $(uname -m) == x86_64 ]]; then
2626
echo '::group::Uninstall system JPEG libraries on macOS'
27-
# The x86 macOS runners, e.g. the GitHub Actions native "macos-12" runner, has some JPEG and PNG libraries
28-
# installed by default that interfere with our build. We uninstall them here and use the one from conda below.
29-
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
27+
# The x86 macOS runners, e.g. the GitHub Actions native "macos-12" runner, has some JPEG libraries installed by
28+
# default that interfere with our build. We uninstall them here and use the one from conda below.
29+
JPEG_LIBS=$(brew list | grep jpeg)
30+
echo $JPEG_LIBS
31+
for lib in $JPEG_LIBS; do
32+
brew uninstall --ignore-dependencies --force $lib || true
3333
done
3434
echo '::endgroup::'
3535
fi

0 commit comments

Comments
 (0)