Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 13 additions & 17 deletions .github/workflows/buildwheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,54 +31,50 @@ jobs:
- uses: actions/upload-artifact@v4
with:
path: dist/*.tar.gz
name: cibw-sdist

build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
cibw_archs: "native"
- os: ubuntu-22.04
cibw_archs: "aarch64 armv7l"
- os: windows-latest
cibw_archs: "native ARM64"
- os: macos-latest
cibw_archs: "x86_64 universal2 arm64"
# macos-13 is an intel runner, macos-14 is apple silicon
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-14]

steps:
- uses: actions/checkout@v3
- name: Set up QEMU
if: matrix.cibw_archs == 'aarch64'
uses: docker/setup-qemu-action@v2
if: runner.os == 'Linux' && runner.arch == 'X64'
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
platforms: all
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_TEST_REQUIRES: hypothesis pytest
CIBW_TEST_COMMAND: "py.test {project}/test.py -v && python {project}/cydoctest.py -v"
CIBW_TEST_COMMAND: "python {project}/cydoctest.py -v" # full test command: py.test {project}/test.py -v
CIBW_SKIP: "pp* cp36-* cp37-*"
CIBW_ARCHS: ${{ matrix.cibw_archs }}
CIBW_ARCHS_LINUX: ${{ runner.arch == 'X64' && 'auto' || 'auto armv7l' }}
CIBW_ARCHS_MACOS: ${{ runner.arch == 'X64' && 'auto' || 'auto universal2' }}
CIBW_ARCHS_WINDOWS: "auto ARM64"
CIBW_TEST_SKIP: "*-win_arm64"
CIBW_BUILD_FRONTEND: "build"

- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}

upload_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
# unpacks default artifact into dist/
# if `name: artifact` is omitted, the action will create extra parent dir
name: artifact
pattern: cibw-*
path: dist
merge-multiple: true

- uses: pypa/[email protected]
# Deploy releases to pypi.
Expand Down
Loading