mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
move x86 jobs to GHA
This commit is contained in:
parent
b8b5f298d0
commit
0364455bfb
77
.github/workflows/wheels.yml
vendored
Normal file
77
.github/workflows/wheels.yml
vendored
Normal file
|
@ -0,0 +1,77 @@
|
|||
|
||||
name: Wheels
|
||||
|
||||
on: [push, pull_request, create]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ "ubuntu-16.04" ]
|
||||
python: [ "3.6", "3.7", "3.8", "3.9", "pypy3.6-7.3" ]
|
||||
platform: [ "x86_64", "i686" ]
|
||||
fail-fast: false
|
||||
|
||||
timeout-minutes: 30
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
name: ${{ matrix.python }} ${{ matrix.os }} ${{ matrix.platform }}
|
||||
|
||||
env:
|
||||
REPO_DIR: Pillow
|
||||
BUILD_COMMIT: HEAD
|
||||
BUILD_DEPENDS: ""
|
||||
TEST_DEPENDS: "pytest pytest-cov"
|
||||
MACOSX_DEPLOYMENT_TARGET: 10.10
|
||||
WHEEL_SDIR: wheelhouse
|
||||
PLAT: ${{ matrix.platform }}
|
||||
MB_PYTHON_VERSION: ${{ matrix.python }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.8
|
||||
|
||||
# Run everything in a single step because GHA doesn't share envvars
|
||||
- name: Build Wheel
|
||||
run: |
|
||||
echo "::group::Install a virtualenv"
|
||||
if [[ "${{ matrix.os }}" == "macos-latest" ]]; then
|
||||
# pretend we are on Travis CI
|
||||
TRAVIS_OS_NAME="osx"
|
||||
fi
|
||||
if [[ "${{ matrix.python }}" == "pypy3.6-7.3" ]]; then
|
||||
# PyPy specific settings
|
||||
if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then
|
||||
MB_ML_VER="2010"
|
||||
DOCKER_TEST_IMAGE="multibuild/xenial_$PLAT"
|
||||
else
|
||||
MB_PYTHON_OSX_VER="10.9"
|
||||
fi
|
||||
fi
|
||||
source multibuild/common_utils.sh
|
||||
source multibuild/travis_steps.sh
|
||||
pip install virtualenv
|
||||
before_install
|
||||
echo "::endgroup::"
|
||||
|
||||
echo "::group::Build wheel"
|
||||
if [[ "${{ startsWith(github.ref, 'refs/tags') }}" == "false" ]]; then
|
||||
BUILD_COMMIT=master
|
||||
fi
|
||||
clean_code $REPO_DIR $BUILD_COMMIT
|
||||
build_wheel $REPO_DIR $PLAT
|
||||
ls -l "${GITHUB_WORKSPACE}/${WHEEL_SDIR}/"
|
||||
echo "::endgroup::"
|
||||
|
||||
install_run $PLAT
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: wheels
|
||||
path: wheelhouse/*.whl
|
110
.travis.yml
110
.travis.yml
|
@ -22,17 +22,6 @@ jobs:
|
|||
language: generic
|
||||
env:
|
||||
- MB_PYTHON_VERSION=3.6
|
||||
|
||||
- name: "3.6 Xenial"
|
||||
os: linux
|
||||
env:
|
||||
- MB_PYTHON_VERSION=3.6
|
||||
- name: "3.6 Xenial 32-bit"
|
||||
os: linux
|
||||
env:
|
||||
- MB_PYTHON_VERSION=3.6
|
||||
- PLAT=i686
|
||||
|
||||
- name: "3.7 macOS"
|
||||
os: osx
|
||||
osx_image: xcode9.3
|
||||
|
@ -51,35 +40,6 @@ jobs:
|
|||
language: generic
|
||||
env:
|
||||
- MB_PYTHON_VERSION=3.9
|
||||
|
||||
- name: "3.7 Xenial"
|
||||
os: linux
|
||||
env:
|
||||
- MB_PYTHON_VERSION=3.7
|
||||
- name: "3.7 Xenial 32-bit"
|
||||
os: linux
|
||||
env:
|
||||
- MB_PYTHON_VERSION=3.7
|
||||
- PLAT=i686
|
||||
- name: "3.8 Xenial"
|
||||
os: linux
|
||||
env:
|
||||
- MB_PYTHON_VERSION=3.8
|
||||
- name: "3.8 Xenial 32-bit"
|
||||
os: linux
|
||||
env:
|
||||
- MB_PYTHON_VERSION=3.8
|
||||
- PLAT=i686
|
||||
- name: "3.9 Xenial"
|
||||
os: linux
|
||||
env:
|
||||
- MB_PYTHON_VERSION=3.9
|
||||
- name: "3.9 Xenial 32-bit"
|
||||
os: linux
|
||||
env:
|
||||
- MB_PYTHON_VERSION=3.9
|
||||
- PLAT=i686
|
||||
|
||||
- name: "3.6 macOS PyPy"
|
||||
os: osx
|
||||
osx_image: xcode9.3
|
||||
|
@ -87,12 +47,6 @@ jobs:
|
|||
env:
|
||||
- MB_PYTHON_VERSION=pypy3.6-7.3
|
||||
- MB_PYTHON_OSX_VER=10.9
|
||||
- name: "3.6 Xenial 64-bit PyPy"
|
||||
os: linux
|
||||
env:
|
||||
- MB_PYTHON_VERSION=pypy3.6-7.3
|
||||
- MB_ML_VER=2010
|
||||
- DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT}
|
||||
|
||||
- name: "3.6 Xenial aarch64"
|
||||
arch: arm64
|
||||
|
@ -133,21 +87,6 @@ jobs:
|
|||
env:
|
||||
- MB_PYTHON_VERSION=3.6
|
||||
- LATEST="true"
|
||||
|
||||
- name: "3.6 Xenial latest"
|
||||
os: linux
|
||||
if: tag IS blank
|
||||
env:
|
||||
- MB_PYTHON_VERSION=3.6
|
||||
- LATEST="true"
|
||||
- name: "3.6 Xenial 32-bit latest"
|
||||
os: linux
|
||||
if: tag IS blank
|
||||
env:
|
||||
- MB_PYTHON_VERSION=3.6
|
||||
- PLAT=i686
|
||||
- LATEST="true"
|
||||
|
||||
- name: "3.7 macOS latest"
|
||||
os: osx
|
||||
osx_image: xcode9.3
|
||||
|
@ -172,47 +111,6 @@ jobs:
|
|||
env:
|
||||
- MB_PYTHON_VERSION=3.9
|
||||
- LATEST="true"
|
||||
|
||||
- name: "3.7 Xenial latest"
|
||||
os: linux
|
||||
if: tag IS blank
|
||||
env:
|
||||
- MB_PYTHON_VERSION=3.7
|
||||
- LATEST="true"
|
||||
- name: "3.7 Xenial 32-bit latest"
|
||||
os: linux
|
||||
if: tag IS blank
|
||||
env:
|
||||
- MB_PYTHON_VERSION=3.7
|
||||
- PLAT=i686
|
||||
- LATEST="true"
|
||||
- name: "3.8 Xenial latest"
|
||||
os: linux
|
||||
if: tag IS blank
|
||||
env:
|
||||
- MB_PYTHON_VERSION=3.8
|
||||
- LATEST="true"
|
||||
- name: "3.8 Xenial 32-bit latest"
|
||||
os: linux
|
||||
if: tag IS blank
|
||||
env:
|
||||
- MB_PYTHON_VERSION=3.8
|
||||
- PLAT=i686
|
||||
- LATEST="true"
|
||||
- name: "3.9 Xenial latest"
|
||||
os: linux
|
||||
if: tag IS blank
|
||||
env:
|
||||
- MB_PYTHON_VERSION=3.9
|
||||
- LATEST="true"
|
||||
- name: "3.9 Xenial 32-bit latest"
|
||||
os: linux
|
||||
if: tag IS blank
|
||||
env:
|
||||
- MB_PYTHON_VERSION=3.9
|
||||
- PLAT=i686
|
||||
- LATEST="true"
|
||||
|
||||
- name: "3.6 macOS PyPy latest"
|
||||
os: osx
|
||||
osx_image: xcode9.3
|
||||
|
@ -222,14 +120,6 @@ jobs:
|
|||
- MB_PYTHON_VERSION=pypy3.6-7.3
|
||||
- MB_PYTHON_OSX_VER=10.9
|
||||
- LATEST="true"
|
||||
- name: "3.6 Xenial 64-bit PyPy latest"
|
||||
os: linux
|
||||
if: tag IS blank
|
||||
env:
|
||||
- MB_PYTHON_VERSION=pypy3.6-7.3
|
||||
- MB_ML_VER=2010
|
||||
- DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT}
|
||||
- LATEST="true"
|
||||
|
||||
- name: "3.6 Xenial aarch64 latest"
|
||||
os: linux
|
||||
|
|
Loading…
Reference in New Issue
Block a user