Pillow/.github/workflows/build.sh

39 lines
1.1 KiB
Bash
Raw Normal View History

2020-10-24 04:17:04 +03:00
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
2021-06-16 23:55:22 +03:00
# webp, zstd, xz, libtiff cause a conflict with building webp and libtiff
2020-12-11 18:12:07 +03:00
# curl from brew requires zstd, use system curl
2021-06-16 23:55:22 +03:00
# if php is installed, brew tries to reinstall these after installing openblas
2021-06-16 22:54:17 +03:00
brew remove --ignore-dependencies webp zstd xz libtiff curl php
2020-10-24 04:17:04 +03:00
fi
2020-12-20 11:19:45 +03:00
if [[ "$MB_PYTHON_VERSION" == pypy3* ]]; then
2020-10-24 04:17:04 +03:00
if [[ "$TRAVIS_OS_NAME" != "macos-latest" ]]; then
2021-08-27 15:28:29 +03:00
if [[ "$PLAT" == "i686" ]]; then
DOCKER_TEST_IMAGE="multibuild/xenial_$PLAT"
else
DOCKER_TEST_IMAGE="multibuild/focal_$PLAT"
fi
2020-10-24 04:17:04 +03:00
else
MB_PYTHON_OSX_VER="10.9"
fi
fi
echo "::group::Install a virtualenv"
source multibuild/common_utils.sh
source multibuild/travis_steps.sh
2020-12-18 08:38:23 +03:00
python3 -m pip install virtualenv
2020-10-24 04:17:04 +03:00
before_install
echo "::endgroup::"
echo "::group::Build wheel"
clean_code $REPO_DIR $BUILD_COMMIT
build_wheel $REPO_DIR $PLAT
ls -l "${GITHUB_WORKSPACE}/${WHEEL_SDIR}/"
echo "::endgroup::"
2021-01-30 02:38:55 +03:00
if [[ $MACOSX_DEPLOYMENT_TARGET != "11.0" ]]; then
echo "::group::Test wheel"
install_run $PLAT
echo "::endgroup::"
2021-05-16 04:58:25 +03:00
fi