mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 09:56:17 +03:00
58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
name: Build macOS wheels
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
artifacts-name:
|
|
required: true
|
|
type: string
|
|
|
|
env:
|
|
CONFIG_PATH: "wheels/config.sh"
|
|
REPO_DIR: "."
|
|
TEST_DEPENDS: "pytest pytest-timeout"
|
|
|
|
jobs:
|
|
build:
|
|
name: ${{ matrix.python }} ${{ matrix.platform }}
|
|
runs-on: "macos-latest"
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python: [
|
|
"pypy3.9-7.3.13",
|
|
"pypy3.10-7.3.13",
|
|
"3.8",
|
|
"3.9",
|
|
"3.10",
|
|
"3.11",
|
|
"3.12",
|
|
]
|
|
platform: [ "x86_64", "arm64" ]
|
|
exclude:
|
|
- python: "pypy3.9-7.3.13"
|
|
platform: "arm64"
|
|
- python: "pypy3.10-7.3.13"
|
|
platform: "arm64"
|
|
env:
|
|
PLAT: ${{ matrix.platform }}
|
|
MB_PYTHON_VERSION: ${{ matrix.python }}
|
|
TRAVIS_OS_NAME: "osx"
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.x"
|
|
- name: Build Wheel
|
|
run: .github/workflows/wheels-build.sh
|
|
- uses: actions/upload-artifact@v3
|
|
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
|