Pillow/.github/workflows/wheels-ubuntu.yml

59 lines
1.5 KiB
YAML
Raw Normal View History

2022-03-30 03:36:47 +03:00
name: Build Ubuntu wheels
2022-02-21 16:41:52 +03:00
on:
workflow_call:
inputs:
build-commit:
required: true
type: string
artifacts-name:
required: true
type: string
env:
REPO_DIR: Pillow
2022-03-19 15:05:56 +03:00
TEST_DEPENDS: "pytest pytest-timeout"
2022-02-21 16:41:52 +03:00
jobs:
build:
2022-03-30 03:36:47 +03:00
name: ${{ matrix.python }} ${{ matrix.mb-ml-libc }} ${{ matrix.platform }}
runs-on: "ubuntu-20.04"
2022-02-21 16:41:52 +03:00
strategy:
fail-fast: false
matrix:
python: [ "pypy3.7-7.3.8", "pypy3.8-7.3.8", "3.7", "3.8", "3.9", "3.10" ]
2022-03-30 03:36:47 +03:00
platform: [ "x86_64", "i686" ]
mb-ml-libc: [ "manylinux" ]
2022-02-21 16:41:52 +03:00
include:
2022-03-30 03:36:47 +03:00
- python: "3.8"
platform: "x86_64"
mb-ml-libc: "musllinux"
- python: "3.9"
platform: "x86_64"
mb-ml-libc: "musllinux"
- python: "3.10"
platform: "x86_64"
mb-ml-libc: "musllinux"
2022-02-21 16:41:52 +03:00
env:
BUILD_COMMIT: ${{ inputs.build-commit }}
PLAT: ${{ matrix.platform }}
MB_PYTHON_VERSION: ${{ matrix.python }}
2022-03-30 03:36:47 +03:00
MB_ML_LIBC: ${{ matrix.mb-ml-libc }}
2022-02-21 16:41:52 +03:00
steps:
2022-03-04 12:57:39 +03:00
- uses: actions/checkout@v3
2022-02-21 16:41:52 +03:00
with:
submodules: true
2022-03-04 12:57:39 +03:00
- uses: actions/setup-python@v3
2022-02-21 16:41:52 +03:00
with:
2022-03-24 01:46:56 +03:00
python-version: "3.10"
2022-02-21 16:41:52 +03:00
- name: Build Wheel
run: .github/workflows/build.sh
2022-03-04 12:57:39 +03:00
- uses: actions/upload-artifact@v3
2022-02-21 16:41:52 +03:00
with:
name: ${{ inputs.artifacts-name }}
path: wheelhouse/*.whl
# Uncomment to get SSH access for testing
# - name: Setup tmate session
# if: failure()
# uses: mxschmitt/action-tmate@v3