Skip to content

build: add aarch64 wheels and upkeep chores #117

build: add aarch64 wheels and upkeep chores

build: add aarch64 wheels and upkeep chores #117

Workflow file for this run

name: wheels
on:
workflow_dispatch:
release:
types:
- published
pull_request:
paths:
- ".github/workflows/wheels.yml"
jobs:
make_sdist:
name: Make SDist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-tags: true
fetch-depth: 0
- name: Build SDist
run: pipx run build --sdist
- uses: actions/upload-artifact@v4
with:
name: artifact-sdist
path: dist/*.tar.gz
build_wheels:
name: Wheel on ${{ matrix.os }} (${{ matrix.arch }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
arch: [auto64]
include:
- os: macos-latest
arch: universal2
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-tags: true
fetch-depth: 0
- uses: pypa/[email protected]
env:
CIBW_ARCHS: ${{ matrix.arch }}
MACOSX_DEPLOYMENT_TARGET: 10.14
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: artifact-wheel-${{ matrix.os }}-${{ matrix.arch }}
path: wheelhouse/*.whl
build_alt_wheels:
name: Wheel on ${{ matrix.os }} (cp${{ matrix.python }}/${{ matrix.libc }}/${{ matrix.arch }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
libc: [manylinux, musllinux]
arch: [aarch64]
python: [37, 38, 39, 310, 311, 312, 313]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-tags: true
fetch-depth: 0
- uses: docker/setup-qemu-action@v3
if: matrix.os == 'ubuntu-latest'
- uses: pypa/[email protected]
env:
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_BUILD: cp${{ matrix.python }}*${{ matrix.libc }}*
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: artifact-wheel-${{ matrix.os }}-cp${{ matrix.python }}-${{ matrix.libc }}-${{ matrix.arch }}
path: wheelhouse/*.whl
pypi-publish:
needs: [build_wheels, build_alt_wheels, make_sdist]
name: Upload release to PyPI
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
path: dist
pattern: artifact-*
merge-multiple: true
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1