Skip to content

Commit 957debc

Browse files
committed
try glibc 2.17
1 parent 6fee65d commit 957debc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/build-typescript-release-aarch64-glibc.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
# Do not use -latest, since it uses a different glibc version!
3131
host: ubuntu-22.04-arm
3232
# ubuntu-22.04-arm, the oldest available GHA runner, has glibc 2.35
33-
container: ghcr.io/rust-cross/manylinux_2_28-cross:aarch64
33+
container: ghcr.io/rust-cross/manylinux2014-cross:aarch64
3434
node_build: pnpm build:napi-release --target aarch64-unknown-linux-gnu
3535
cargo_args: -p baml-typescript-ffi -p baml-python-ffi
3636

@@ -39,6 +39,10 @@ jobs:
3939
container: ${{ matrix._.container }}
4040
env:
4141
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
42+
# manylinux2014 cross toolchain does not define __ARM_ARCH for ring's asm;
43+
# force it via target-specific CFLAGS so cc-rs sets it when compiling asm.
44+
CFLAGS_aarch64_unknown_linux_gnu: "-D__ARM_ARCH=8"
45+
CFLAGS_aarch64-unknown-linux-gnu: "-D__ARM_ARCH=8"
4246
steps:
4347
- name: Checkout
4448
uses: actions/checkout@v4

0 commit comments

Comments
 (0)