Skip to content

Commit 3f318bf

Browse files
committed
Add Linux AArch64 wheel build support
Signed-off-by: odidev <odidev@puresoftware.com>
1 parent d9834fb commit 3f318bf

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/python-package.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,14 @@ jobs:
186186
187187
linux-wheels:
188188
runs-on: "ubuntu-20.04"
189+
strategy:
190+
matrix:
191+
arch: ["x86_64", "aarch64"]
189192
steps:
190193
- uses: actions/checkout@v1
194+
- name: Set up QEMU
195+
if: ${{ matrix.arch == 'aarch64' }}
196+
uses: docker/setup-qemu-action@v1
191197
- name: Checkout submodules
192198
run: |
193199
git submodule update --init --recursive --depth 1
@@ -204,10 +210,14 @@ jobs:
204210
python -m cibuildwheel --output-dir wheelhouse
205211
env:
206212
CIBW_BUILD: cp36-* pp*
207-
CIBW_ARCHS_LINUX: "x86_64"
208-
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
213+
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
214+
CIBW_MANYLINUX_*_IMAGE: manylinux2014
209215
CIBW_MANYLINUX_PYPY_X86_64_IMAGE: manylinux2014
210-
CIBW_BEFORE_ALL_LINUX: yum install -y SDL2-devel
216+
CIBW_MANYLINUX_PYPY_AARCH64_IMAGE: manylinux2014
217+
CIBW_BEFORE_ALL_LINUX: >
218+
yum install -y epel-release &&
219+
yum-config-manager --enable epel &&
220+
yum install -y SDL2-devel
211221
CIBW_BEFORE_TEST: pip install numpy
212222
CIBW_TEST_COMMAND: python -c "import tcod"
213223
- name: Archive wheel

0 commit comments

Comments
 (0)