2022-03-30 03:36:47 +03:00
|
|
|
name: Build macOS 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.platform }}
|
|
|
|
runs-on: "macos-latest"
|
2022-02-21 16:41:52 +03:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2022-12-06 22:00:22 +03:00
|
|
|
python: [
|
|
|
|
"pypy3.8-7.3.10",
|
|
|
|
"pypy3.9-7.3.10",
|
|
|
|
"3.7",
|
|
|
|
"3.8",
|
|
|
|
"3.9",
|
|
|
|
"3.10",
|
|
|
|
"3.11",
|
|
|
|
]
|
2022-03-30 13:19:24 +03:00
|
|
|
platform: [ "x86_64", "arm64" ]
|
2022-03-30 10:39:13 +03:00
|
|
|
exclude:
|
2022-03-30 10:35:11 +03:00
|
|
|
- python: "3.7"
|
2022-03-30 10:39:13 +03:00
|
|
|
platform: "arm64"
|
2022-12-12 13:44:42 +03:00
|
|
|
- python: "pypy3.8-7.3.10"
|
2022-03-30 10:39:13 +03:00
|
|
|
platform: "arm64"
|
2022-12-12 13:44:42 +03:00
|
|
|
- python: "pypy3.9-7.3.10"
|
2022-12-06 22:00:22 +03:00
|
|
|
platform: "arm64"
|
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
|
|
|
TRAVIS_OS_NAME: "osx"
|
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-09-20 01:13:22 +03:00
|
|
|
- uses: actions/setup-python@v4
|
2022-02-21 16:41:52 +03:00
|
|
|
with:
|
2022-11-18 11:29:54 +03:00
|
|
|
python-version: "3.x"
|
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
|