Skip to content

Commit

Permalink
[fbsync] fix system image library uninstallation on macos x86 (#7622)
Browse files Browse the repository at this point in the history
Reviewed By: vmoens

Differential Revision: D46314044

fbshipit-source-id: 64a92c371c3ccf3927169c9637c346302d3111a4
  • Loading branch information
NicolasHug authored and facebook-github-bot committed May 31, 2023
1 parent 4f1c56d commit 5efc10b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/scripts/setup-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ if [[ "${OS_TYPE}" == "macos" && $(uname -m) == x86_64 ]]; then
# The x86 macOS runners, e.g. the GitHub Actions native "macos-12" runner, has some JPEG and PNG libraries
# installed by default that interfere with our build. We uninstall them here and use the one from conda below.
IMAGE_LIBS=$(brew list | grep -E "jpeg|png")
echo "${IMAGE_LIBS}"
for lib in "${IMAGE_LIBS}"; do
brew uninstall --ignore-dependencies --force "${lib}" || true
for lib in $IMAGE_LIBS; do
brew uninstall --ignore-dependencies --force "${lib}"
done
echo '::endgroup::'
fi
Expand Down

0 comments on commit 5efc10b

Please sign in to comment.