diff --git a/Cross.toml b/Cross.toml new file mode 100644 index 0000000000..2200509a67 --- /dev/null +++ b/Cross.toml @@ -0,0 +1,9 @@ +# Configuration for cross-rs: https://github.com/cross-rs/cross +# Run cross-rs like this: +# cross build --target aarch64-unknown-linux-musl --release + +[target.aarch64-unknown-linux-gnu] +dockerfile = "./docker/cross-rs/aarch64-unknown-linux-gnu.dockerfile" + +[target.aarch64-unknown-linux-musl] +dockerfile = "./docker/cross-rs/aarch64-unknown-linux-musl.dockerfile" \ No newline at end of file diff --git a/docker/cross-rs/aarch64-unknown-linux-gnu.dockerfile b/docker/cross-rs/aarch64-unknown-linux-gnu.dockerfile new file mode 100644 index 0000000000..7d2c58baa0 --- /dev/null +++ b/docker/cross-rs/aarch64-unknown-linux-gnu.dockerfile @@ -0,0 +1,5 @@ +FROM ghcr.io/cross-rs/aarch64-unknown-linux-gnu:latest + +RUN dpkg --add-architecture arm64 && \ + apt-get update && \ + apt-get install --assume-yes libssl-dev:arm64 clang diff --git a/docker/cross-rs/aarch64-unknown-linux-musl.dockerfile b/docker/cross-rs/aarch64-unknown-linux-musl.dockerfile new file mode 100644 index 0000000000..a9922a2cc5 --- /dev/null +++ b/docker/cross-rs/aarch64-unknown-linux-musl.dockerfile @@ -0,0 +1,5 @@ +FROM ghcr.io/cross-rs/aarch64-unknown-linux-musl:latest + +RUN dpkg --add-architecture arm64 && \ + apt-get update && \ + apt-get install --assume-yes libssl-dev:arm64 clang