mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 06:30:08 +02:00
Add cross-rs config (#7559)
Cross-compiling Nu can be a little tricky due to dependencies. This PR makes it easy to use [`cross-rs`](https://github.com/cross-rs/cross), a popular tool for cross-compiling Rust code using Docker: ```bash cross build --target aarch64-unknown-linux-musl --release ``` I find this useful for compiling ARM binaries from x64. Easy to add more target triples later as needed.
This commit is contained in:
5
docker/cross-rs/aarch64-unknown-linux-gnu.dockerfile
Normal file
5
docker/cross-rs/aarch64-unknown-linux-gnu.dockerfile
Normal file
@ -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
|
5
docker/cross-rs/aarch64-unknown-linux-musl.dockerfile
Normal file
5
docker/cross-rs/aarch64-unknown-linux-musl.dockerfile
Normal file
@ -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
|
Reference in New Issue
Block a user