-
Notifications
You must be signed in to change notification settings - Fork 7.1k
add macOS unittest to GHA #7376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
print(f" libpng include path: {jpeg_include}") | ||
print(f" libpng lib path: {jpeg_lib}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small drive-by that helped me debug. We do the same for PNG already:
Lines 278 to 279 in 0e62c34
print(f" libpng version: {png_version}") | |
print(f" libpng include path: {png_include}") |
I wasn't able to get the version of the library in a way that would hold for all operating systems. I guess knowing the location is good enough.
# The x86 macOS runners, e.g. the GitHub Actions native "macos-12" runner, has some JPEG libraries installed by default | ||
# that interfere with our build. We uninstall them here and use the one from conda below. | ||
if [[ "${OS_TYPE}" == "macos" && $(uname -m) == x86_64 ]]; then | ||
JPEG_LIBS=$(brew list | grep jpeg) | ||
echo $JPEG_LIBS | ||
for lib in $JPEG_LIBS; do | ||
brew uninstall --ignore-dependencies --force $lib || true | ||
done | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are doing the same for the macOS wheel workflows:
vision/packaging/pre_build_script.sh
Lines 3 to 9 in 0e62c34
# Uninstall Conflicting jpeg brew formulae | |
jpeg_packages=$(brew list | grep jpeg) | |
echo "Existing Jpeg-related Brew libraries" | |
echo $jpeg_packages | |
for pkg in $jpeg_packages; do | |
brew uninstall --ignore-dependencies --force $pkg || true | |
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thanks!
Hey @pmeier! You merged this PR, but no labels were added. The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py |
Reviewed By: vmoens Differential Revision: D44416613 fbshipit-source-id: 5a1ff6c8d7636e77a081809eaf1c848ca4c06a3f
This PR does two things:
cc @seemethere