Skip to content

Commit ee3e317

Browse files
authored
Add Python build for Linux on ARM architecture (#1795)
Signed-off-by: Tom V <tom.viner@sohonet.com>
1 parent 129c4bb commit ee3e317

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/python-package.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,20 @@ jobs:
182182
steps:
183183
- uses: actions/checkout@v4
184184

185+
- name: Set up QEMU
186+
if: runner.os == 'Linux'
187+
uses: docker/setup-qemu-action@v3
188+
185189
- name: Build wheels (Python 3)
186190
uses: pypa/cibuildwheel@v2.16.5
187191
with:
188192
output-dir: wheelhouse
189193
env:
190194
CIBW_BUILD: ${{ matrix.python-build }}
191195
CIBW_SKIP: '*musllinux*'
196+
CIBW_ARCHS_LINUX: x86_64 aarch64
192197
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
193-
CIBW_MANYLINUX_I686_IMAGE: manylinux2014
198+
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014
194199

195200
- uses: actions/upload-artifact@v3
196201
with:

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ requires = [
77
build-backend = "setuptools.build_meta"
88

99
[tool.cibuildwheel.linux]
10-
archs = ["x86_64"]
10+
archs = ["x86_64", "aarch64"]
1111

1212
[tool.cibuildwheel.windows]
1313
archs = ["AMD64"]

0 commit comments

Comments
 (0)