diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 417c1bd65..a8507a732 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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 diff --git a/Cross.toml b/Cross.toml index 5cf503bfa..5c94c650c 100644 --- a/Cross.toml +++ b/Cross.toml @@ -35,4 +35,12 @@ env.passthrough = [ ] [build.env] -passthrough = ["JEMALLOC_SYS_WITH_LG_PAGE"] \ No newline at end of file +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" \ No newline at end of file