Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: add aarch64 wheels and upkeep chores #270

Merged
merged 13 commits into from
Jan 13, 2025
18 changes: 8 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
submodules: recursive
- uses: actions/setup-python@v3
with:
python-version: 3.11.3
python-version: 3.12
- uses: pre-commit/[email protected]
with:
extra_args: --hook-stage manual --all-files
Expand All @@ -31,15 +31,15 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
python-version: ["3.12", "3.13"]
runs-on: [ubuntu-latest, macos-latest, windows-latest]

include:
- python-version: "3.7"
- python-version: "3.8"
runs-on: ubuntu-latest
- python-version: "3.7"
- python-version: "3.8"
runs-on: macos-13
- python-version: "3.7"
- python-version: "3.8"
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -66,12 +66,10 @@ jobs:
submodules: recursive

- name: Set up Conda
uses: conda-incubator/setup-miniconda@v3.0.4
uses: conda-incubator/setup-miniconda@v3
with:
python-version: 3.11
miniforge-variant: Mambaforge
channels: conda-forge,defaults
channel-priority: true
python-version: 3.12
miniforge-version: latest

- name: Install ROOT
shell: bash -l {0}
Expand Down
46 changes: 42 additions & 4 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,16 @@ jobs:
path: dist/*.tar.gz

build_wheels:
name: Wheel on ${{ matrix.os }}
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
Expand All @@ -43,18 +47,52 @@ jobs:
fetch-tags: true
fetch-depth: 0

- uses: pypa/cibuildwheel@v2.19.2
- uses: pypa/cibuildwheel@v2.22
env:
CIBW_ARCHS: ${{ matrix.arch }}
MACOSX_DEPLOYMENT_TARGET: 10.14

- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: artifact-wheel-${{ matrix.os }}
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: [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, make_sdist]
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'
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ classifiers =
Development Status :: 5 - Production/Stable

[options]
python_requires = >=3.7
python_requires = >=3.8
install_requires =
numpy >=1.13.3
typing-extensions;python_version<"3.8"
Expand Down
Loading