Skip to content

Commit

Permalink
custom image
Browse files Browse the repository at this point in the history
  • Loading branch information
vnghia committed Aug 7, 2024
1 parent 3e6ef30 commit 8b0d00b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cross.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ passthrough = [

[build]
pre-build = "ci/cross-pre-build.sh"

[target.aarch64-unknown-linux-gnu]
dockerfile = "ci/cross/Dockerfile.aarch64"
14 changes: 14 additions & 0 deletions ci/cross/Dockerfile.aarch64
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM debian:bookworm
ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install --assume-yes --no-install-recommends \
crossbuild-essential-arm64 \
libc6-dev-arm64-cross

ENV CROSS_TOOLCHAIN_PREFIX=aarch64-linux-gnu-
ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=${CROSS_TOOLCHAIN_PREFIX}gcc \
AR_aarch64_unknown_linux_gnu=${CROSS_TOOLCHAIN_PREFIX}ar \
CC_aarch64_unknown_linux_gnu=${CROSS_TOOLCHAIN_PREFIX}gcc \
CXX_aarch64_unknown_linux_gnu=${CROSS_TOOLCHAIN_PREFIX}g++ \
RUST_TEST_THREADS=1 \
PKG_CONFIG_PATH="/usr/lib/aarch64-linux-gnu/pkgconfig/:${PKG_CONFIG_PATH}"

0 comments on commit 8b0d00b

Please sign in to comment.