Skip to content

Commit 7498819

Browse files
committed
[cibuildwheel] Enable building aarch64 on Linux
Add ubuntu-24.04-arm to the build matrix.
1 parent 077c94c commit 7498819

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
os: [ubuntu-latest, macos-latest, windows-2019]
20+
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-2019]
2121

2222
steps:
2323
- uses: actions/checkout@v4

pyproject.toml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,19 @@ before-all = [
3030
"ln -s $(which ccache) /usr/lib64/ccache/gcc",
3131
]
3232
before-test = "ccache --show-stats"
33-
34-
[tool.cibuildwheel.linux.environment]
35-
CC = "/usr/lib64/ccache/gcc"
36-
CFLAGS = "-g0"
33+
environment = {CC = "/usr/lib64/ccache/gcc", CFLAGS = "-g0"}
3734

3835
[[tool.cibuildwheel.overrides]]
3936
select = "*-musllinux*"
4037
before-all = "apk add ccache"
4138
environment = {CC = "/usr/lib/ccache/bin/gcc"}
4239

40+
# Installing ccache fails on manylinux aarch64 images
41+
[[tool.cibuildwheel.overrides]]
42+
select = "*-manylinux_aarch64"
43+
before-all = ""
44+
before-test = ""
45+
environment = {CFLAGS = "-g0"}
46+
4347
[tool.black]
4448
extend-exclude = "harfbuzz"

0 commit comments

Comments
 (0)