Skip to content

Commit 019c4e1

Browse files
authored
[ci] Build wheels for linux aarch64 and Intel mac (#68)
1 parent 2a67cfb commit 019c4e1

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ jobs:
3636
fail-fast: false
3737
matrix:
3838
include:
39-
- { os: ubuntu-24.04, label: manylinux-x86_64, arch: x86_64 }
40-
- { os: macos-26, label: macosx-arm64, arch: arm64 }
39+
- { os: ubuntu-24.04, label: manylinux-x86_64, arch: x86_64 }
40+
- { os: ubuntu-24.04-arm, label: manylinux-aarch64, arch: aarch64 }
41+
- { os: macos-26, label: macosx-arm64, arch: arm64 }
42+
- { os: macos-26-intel, label: macosx-x86_64, arch: x86_64 }
4143
runs-on: ${{ matrix.os }}
4244

4345
steps:
@@ -53,7 +55,7 @@ jobs:
5355
version: '21.1.8'
5456
os: ${{ matrix.os }}
5557
arch: ${{ matrix.arch }}
56-
ref: b760e4c171961786b7b20e2cc514302df5373eef
58+
ref: 02f380b2e46746cd1c948c085894b8594a867fba
5759

5860
- name: Stage the toolchain at /opt/llvm
5961
env:
@@ -152,7 +154,7 @@ jobs:
152154
version: '21.1.8'
153155
os: ubuntu-24.04
154156
arch: x86_64
155-
ref: b760e4c171961786b7b20e2cc514302df5373eef
157+
ref: 02f380b2e46746cd1c948c085894b8594a867fba
156158

157159
- uses: actions/download-artifact@v8
158160
with:

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ input = "python/cppjit/_version.py"
3636
# cp314t needs a free-threading audit first; cp315 joins at its release.
3737
build = ["cp312-*", "cp313-*", "cp314-*"]
3838
skip = ["*-musllinux*"]
39+
# one native runner per matrix row; no emulation
40+
archs = ["auto64"]
3941
build-verbosity = 1
4042
audit-requires = ["twine"]
4143
audit-command = "twine check {wheel}"
@@ -45,14 +47,13 @@ test-command = "python .github/wheel_smoke.py"
4547
test-environment = { PYTHONSAFEPATH = "1" }
4648

4749
[tool.cibuildwheel.linux]
48-
archs = ["x86_64"]
4950
manylinux-x86_64-image = "manylinux_2_28"
51+
manylinux-aarch64-image = "manylinux_2_28"
5052
# /opt/llvm is staged on the runner by wheels.yml.
5153
container-engine = { name = "docker", create-args = ["--volume=/opt/llvm:/opt/llvm"], disable-host-mount = true }
5254
environment = { CMAKE_ARGS = "-DLLVM_DIR=/opt/llvm/lib/cmake/llvm -DClang_DIR=/opt/llvm/lib/cmake/clang" }
5355

5456
[tool.cibuildwheel.macos]
55-
archs = ["arm64"]
5657
before-test = "brew install eigen boost && python -m pip install -r {project}/requirements.txt"
5758
test-command = "python .github/wheel_smoke.py && cd test && make -j$(sysctl -n hw.ncpu) PYTHON=python && CPPINTEROP_EXTRA_INTERPRETER_ARGS=-std=c++20 python -m pytest -ra"
5859
environment = { CMAKE_ARGS = "-DLLVM_DIR=/opt/llvm/lib/cmake/llvm -DClang_DIR=/opt/llvm/lib/cmake/clang", MACOSX_DEPLOYMENT_TARGET = "14.0" }

0 commit comments

Comments
 (0)