Skip to content

Commit

Permalink
feat(ci): build and publish Linux aarch64 wheels (#101)
Browse files Browse the repository at this point in the history
* feat(ci): build only aarch64

* fix(ci): add QEMU

* Update build-and-publish.yml to match PR

* fix: force setuptools, different artifact names

* Update .github/workflows/build-and-publish.yml

* Update .github/workflows/build-and-publish.yml

---------

Co-authored-by: Mickaël Schoentgen <[email protected]>
  • Loading branch information
vermut and BoboTiG authored May 6, 2024
1 parent 56233ca commit f6a7448
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ jobs:
with:
ref: ${{ github.event.inputs.branch }}
submodules: true

- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: Install Python
uses: actions/setup-python@v5
with:
Expand All @@ -37,11 +44,13 @@ jobs:
env:
CIBW_SKIP: "cp36-*" # skip 3.6
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
CIBW_ARCHS_LINUX: "auto aarch64"
- uses: actions/upload-artifact@v4
with:
name: python-package-distributions-macos
name: python-package-distributions-${{ matrix.os }}
path: ./wheelhouse/*.whl


source-distribution:
name: Build source distribution
runs-on: ubuntu-latest
Expand All @@ -56,7 +65,10 @@ jobs:
with:
python-version: "3.x"
- name: Build source distribution
run: python setup.py sdist
run: |
# FIXME: setuptools was removed starting with Python 3.12
pip install --upgrade --force setuptools
python setup.py sdist
- name: Store the source distribution
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit f6a7448

Please sign in to comment.