From 9270cdcc259f1ef0a3e582da033a48e32775928f Mon Sep 17 00:00:00 2001 From: Jason Prado Date: Mon, 30 Jun 2025 16:11:35 -0700 Subject: [PATCH] Add aarch64 wheel builds --- .github/workflows/wheels.yml | 8 ++++++-- pyproject.toml | 3 +++ triangle/version.py | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 31560b3..56282fd 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -6,6 +6,8 @@ jobs: build_wheels: name: Build wheel on ${{ matrix.os }} runs-on: ${{ matrix.os }} + env: + CIBW_ARCHS_LINUX: "x86_64 aarch64" strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] @@ -14,15 +16,17 @@ jobs: with: submodules: 'recursive' - uses: actions/setup-python@v3 + - uses: docker/setup-qemu-action@v3.6.0 + if: matrix.os == 'ubuntu-latest' - name: Install cibuildwheel run: | python -m pip install cibuildwheel - name: Build wheel run: | python -m cibuildwheel --output-dir dist - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: - name: wheels + name: wheels-${{ matrix.os }} path: dist/ - name: Upload To PyPI if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') diff --git a/pyproject.toml b/pyproject.toml index 91d42fa..0648e83 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,3 +50,6 @@ skip = ['pp*', '*musllinux*'] test-skip = ['*-manylinux_i686'] test-requires = 'pytest' test-command = 'pytest {project}/tests' + +[tool.cibuildwheel.linux] +archs = ['x86_64', 'aarch64'] diff --git a/triangle/version.py b/triangle/version.py index b10bf27..29461e2 100644 --- a/triangle/version.py +++ b/triangle/version.py @@ -1 +1 @@ -__version__ = '20250106' +__version__ = '20250630'