Skip to content

Commit b2e85f1

Browse files
Build aarch64 wheels under emulation (#54)
Co-authored-by: messense <messense@icloud.com>
1 parent ec7c121 commit b2e85f1

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/build_wheels.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,36 @@ jobs:
3030
name: dist
3131
path: ./wheelhouse/*.whl
3232

33+
build_wheels_aarch64:
34+
name: py${{ matrix.python-version }} on ${{ matrix.os }} (aarch64)
35+
runs-on: ${{ matrix.os }}
36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
os: [ubuntu-latest]
40+
python-version: [38, 39, 310, 311]
41+
42+
steps:
43+
- uses: actions/checkout@v3
44+
45+
- name: Setup up QEMU
46+
uses: docker/setup-qemu-action@v2
47+
with:
48+
platforms: arm64
49+
50+
- name: Build wheels
51+
uses: pypa/cibuildwheel@v2.11.3
52+
env:
53+
CIBW_BUILD: "cp${{ matrix.python-version}}-*"
54+
CIBW_ARCHS: aarch64
55+
CIBW_BUILD_VERBOSITY: 3
56+
# https://github.com/rust-lang/cargo/issues/10583
57+
CIBW_ENVIRONMENT_LINUX: PATH="$PATH:$HOME/.cargo/bin" CARGO_NET_GIT_FETCH_WITH_CLI=true
58+
- uses: actions/upload-artifact@v3
59+
with:
60+
name: dist
61+
path: ./wheelhouse/*.whl
62+
3363
build_sdist:
3464
name: sdist
3565
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)