Skip to content

Commit 28ddb0d

Browse files
IvanIsCodingmergify[bot]
authored andcommitted
Use native aarch64 GitHub Action workers (#1371)
* Use native aarch64 GitHub Action works * Simplify release structure (cherry picked from commit f2f4542)
1 parent 1fb70e9 commit 28ddb0d

File tree

2 files changed

+2
-79
lines changed

2 files changed

+2
-79
lines changed

.github/workflows/wheels.yml

+1-78
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
strategy:
4848
fail-fast: false
4949
matrix:
50-
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
50+
os: [ubuntu-latest, windows-latest, macos-13, macos-14, ubuntu-24.04-arm]
5151
steps:
5252
- uses: actions/checkout@v4
5353
- uses: actions/setup-python@v5
@@ -82,83 +82,6 @@ jobs:
8282
uses: pypa/gh-action-pypi-publish@release/v1
8383
with:
8484
packages-dir: deploy
85-
build_wheels_aarch64:
86-
name: Build wheels on ${{ matrix.os }}
87-
runs-on: ${{ matrix.os }}
88-
environment: release
89-
permissions:
90-
id-token: write
91-
strategy:
92-
fail-fast: false
93-
matrix:
94-
os: [ubuntu-latest]
95-
steps:
96-
- uses: actions/checkout@v4
97-
- uses: actions/setup-python@v5
98-
name: Install Python
99-
with:
100-
python-version: '3.10'
101-
- uses: dtolnay/rust-toolchain@stable
102-
- name: Set up QEMU
103-
uses: docker/setup-qemu-action@v2
104-
with:
105-
platforms: all
106-
- name: Install cibuildwheel
107-
run: |
108-
python -m pip install cibuildwheel==2.21.3
109-
- name: Build wheels
110-
run: |
111-
python -m cibuildwheel --output-dir wheelhouse
112-
env:
113-
CIBW_ARCHS_LINUX: aarch64
114-
CIBW_SKIP: cp36-* cp37-* pp* *musl*
115-
- uses: actions/upload-artifact@v4
116-
with:
117-
path: ./wheelhouse/*.whl
118-
name: wheel-builds-aarch64
119-
- name: Publish package distributions to PyPI
120-
uses: pypa/gh-action-pypi-publish@release/v1
121-
with:
122-
packages-dir: wheelhouse/
123-
build_wheels_musl_aarch64:
124-
name: Build wheels on ${{ matrix.os }}
125-
runs-on: ${{ matrix.os }}
126-
environment: release
127-
permissions:
128-
id-token: write
129-
strategy:
130-
fail-fast: false
131-
matrix:
132-
os: [ubuntu-latest]
133-
steps:
134-
- uses: actions/checkout@v4
135-
- uses: actions/setup-python@v5
136-
name: Install Python
137-
with:
138-
python-version: '3.10'
139-
- uses: dtolnay/rust-toolchain@stable
140-
- name: Set up QEMU
141-
uses: docker/setup-qemu-action@v2
142-
with:
143-
platforms: all
144-
- name: Install cibuildwheel
145-
run: |
146-
python -m pip install cibuildwheel==2.21.3
147-
- name: Build wheels
148-
run: |
149-
python -m cibuildwheel --output-dir wheelhouse
150-
env:
151-
CIBW_ARCHS_LINUX: aarch64
152-
CIBW_SKIP: cp36-* cp37-* cp38-* *many*
153-
CIBW_TEST_SKIP: cp39-* cp310-* cp311-* cp312-* *many*
154-
- uses: actions/upload-artifact@v4
155-
with:
156-
path: ./wheelhouse/*.whl
157-
name: wheel-builds-musl-aarch64
158-
- name: Publish package distributions to PyPI
159-
uses: pypa/gh-action-pypi-publish@release/v1
160-
with:
161-
packages-dir: wheelhouse/
16285
build_wheels_ppc64le:
16386
name: Build wheels on ${{ matrix.os }}
16487
runs-on: ${{ matrix.os }}

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ skip = "pp* cp36-* cp37-* cp38-* *win32 *musllinux*i686"
3535
test-requires = "networkx"
3636
test-command = "python -m unittest discover {project}/tests"
3737
before-build = "pip install -U setuptools-rust"
38-
test-skip = "*linux_s390x *ppc64le"
38+
test-skip = "*linux_s390x *ppc64le *musllinux*aarch64"
3939

4040
[tool.cibuildwheel.linux]
4141
before-all = "yum install -y wget && {package}/tools/install_rust.sh"

0 commit comments

Comments
 (0)