Skip to content

Commit bea8715

Browse files
davnnkno10
authored andcommitted
add aarch64 linux wheel support
1 parent 03a495a commit bea8715

2 files changed

Lines changed: 27 additions & 5 deletions

File tree

.github/workflows/build-wheels.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/bin/bash
22
set -e -x
33

4+
curl https://sh.rustup.rs -sSf | sh -s -- -y
5+
source $HOME/.cargo/env
6+
rustup default stable
7+
48
# build wheels
59
for PYBIN in /opt/python/cp3[891]*/bin; do
610
"${PYBIN}/pip" install -r requirements.txt -r requirements-dev.txt

.github/workflows/wheels.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88

99
jobs:
10-
linux-wheels:
10+
linux-x86-wheels:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
@@ -19,16 +19,34 @@ jobs:
1919
- uses: actions/checkout@v3
2020
- name: Build wheels
2121
run: |
22-
curl https://sh.rustup.rs -sSf | sh -s -- -y
23-
source $HOME/.cargo/env
24-
rustup default stable
2522
bash .github/workflows/build-wheels.sh
2623
- uses: actions/upload-artifact@v3
2724
with:
2825
name: wheels
2926
path: wheelhouse
3027
if-no-files-found: error
3128

29+
linux-aarch-wheels:
30+
runs-on: ubuntu-latest
31+
strategy:
32+
matrix:
33+
container:
34+
- "quay.io/pypa/manylinux2014_aarch64"
35+
- "quay.io/pypa/manylinux_2_28_aarch64"
36+
steps:
37+
- uses: actions/checkout@v3
38+
- name: Install QEMU
39+
run: |
40+
docker run --privileged --rm tonistiigi/binfmt --install all
41+
- name: Build wheels
42+
run: |
43+
docker run --workdir /src -v ${PWD}:/src ${{ matrix.container }} /bin/bash .github/workflows/build-wheels.sh
44+
- uses: actions/upload-artifact@v3
45+
with:
46+
name: wheels
47+
path: wheelhouse
48+
if-no-files-found: error
49+
3250
osx-wheels:
3351
runs-on: macos-latest
3452
strategy:
@@ -86,7 +104,7 @@ jobs:
86104

87105
upload-wheels:
88106
name: Upload wheels to PyPI
89-
needs: [linux-wheels, osx-wheels, windows-wheels]
107+
needs: [linux-x86-wheels, linux-aarch-wheels, osx-wheels, windows-wheels]
90108
runs-on: ubuntu-latest
91109
steps:
92110
- name: Collect artifacts

0 commit comments

Comments
 (0)