Skip to content

Commit 21d0fbe

Browse files
authored
feat(ci): build bindings for ARM linux (#7652)
1 parent 563571d commit 21d0fbe

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/osrm-backend.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,10 +396,11 @@ jobs:
396396
CXXCOMPILER: clang++-18
397397
NODE_PACKAGE_TESTS_ONLY: ON
398398

399-
- name: linux-arm64-release
399+
- name: linux-arm64-release-bindings
400+
build_bindings: true
400401
continue-on-error: false
401402
node: 24
402-
runs-on: ubuntu-24.04-arm
403+
runs-on: ubuntu-26.04-arm
403404
BUILD_TYPE: Release
404405
CCOMPILER: clang-18
405406
CXXCOMPILER: clang++-18

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,17 @@ LD_LIBRARY_PATH=/usr/local/lib64:${LD_LIBRARY_PATH} \
9090
CCACHE_DIR=/ccache \
9191
CMAKE_ARGS="-DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-linux-release"\
9292
"""
93+
9394
before-build = "ccache -s && ccache -M 500M"
9495
repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel}"
9596

97+
# Override the triplet for aarch64 — the base environment hard-codes
98+
# x64-linux-release which only works on x86_64. The override appends a
99+
# second CMAKE_ARGS whose value shadows the base one.
100+
[[tool.cibuildwheel.overrides]]
101+
select = "*-manylinux_aarch64"
102+
environment = 'CMAKE_ARGS="-DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=arm64-linux-release"'
103+
96104
[tool.cibuildwheel.macos]
97105
# Build deps come from vcpkg (same pattern as Windows). VCPKG_ROOT is
98106
# exported on the runner by lukka/run-vcpkg in the workflow and inherited

0 commit comments

Comments
 (0)