This commit is contained in:
Fuyao Zhao
2025-08-31 10:51:37 +08:00
parent c23b12ac0c
commit 6212b9dc9e
2 changed files with 10 additions and 2 deletions

View File

@ -32,7 +32,7 @@ jobs:
- name: Install cross main
id: cross_main
run: |
cargo install cross --git https://github.com/cross-rs/cross --force v0.2.5
cargo install cross --git https://github.com/cross-rs/cross
- name: Log in to Docker
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io --username ${DOCKER_USERNAME} --password-stdin

View File

@ -35,4 +35,12 @@ env.passthrough = [
]
[build.env]
passthrough = ["JEMALLOC_SYS_WITH_LG_PAGE"]
passthrough = ["JEMALLOC_SYS_WITH_LG_PAGE"]
# Use specific Docker images for Linux targets to avoid GLIBC compatibility issues
# TODO remove this when cross has more stable release
[target.x86_64-unknown-linux-gnu]
image = "ghcr.io/cross-rs/x86_64-unknown-linux-gnu:0.2.5"
[target.aarch64-unknown-linux-gnu]
image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:0.2.5"