Skip to content

Commit 02757e9

Browse files
committed
Add linux aarch64 wheel support
1 parent e19d9e1 commit 02757e9

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/build-linux.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,52 @@ jobs:
7474
with:
7575
name: wheels
7676
path: ./wheelhouse
77+
78+
build_wheels_aarch64:
79+
name: Build wheels on ${{ matrix.os }}, ${{ matrix.arch }}
80+
runs-on: ${{ matrix.os }}
81+
strategy:
82+
matrix:
83+
os: [ubuntu-18.04]
84+
arch: [aarch64]
85+
86+
steps:
87+
- uses: actions/checkout@v2
88+
89+
- uses: actions/setup-python@v1
90+
name: Install Python 3.8
91+
with:
92+
python-version: "3.8"
93+
94+
- name: Install cibuildwheel
95+
run: |
96+
python -m pip install cibuildwheel~=1.8.0
97+
98+
- uses: docker/setup-qemu-action@v1
99+
name: Set up QEMU
100+
101+
- name: Checkout submodules
102+
shell: bash
103+
run: |
104+
git submodule sync --recursive
105+
git submodule update --init --force --recursive --depth=1
106+
107+
- name: Build wheel
108+
if: contains(github.ref, 'tags/')
109+
run: |
110+
python -m cibuildwheel --output-dir wheelhouse
111+
env:
112+
CIBW_BUILD: cp36-* cp37-* cp38-* cp39-*
113+
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
114+
CIBW_BEFORE_BUILD: python -m pip install --upgrade pip
115+
&& python -m pip install tox
116+
CIBW_TEST_REQUIRES: tox
117+
CIBW_TEST_COMMAND: cd /project
118+
&& python -m pip install -r requirements-dev.txt
119+
&& /opt/python/*/bin/tox -e py
120+
121+
- uses: actions/upload-artifact@v1
122+
if: contains(github.ref, 'tags/')
123+
with:
124+
name: wheels
125+
path: ./wheelhouse

0 commit comments

Comments
 (0)