-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: configure cross to support x86_64 and aarch64 for linux/musl (#674
- Loading branch information
1 parent
29b7749
commit 3c40444
Showing
1 changed file
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
[target.x86_64-unknown-linux-musl] | ||
image = "clux/muslrust:stable" | ||
# N.B. The following dependencies are required for all targets to be built: 'qemu' and 'qemu-user-static' | ||
|
||
[target.x86_64-unknown-linux-gnu] | ||
[build] | ||
pre-build = [ | ||
"dpkg --add-architecture $CROSS_DEB_ARCH", | ||
"apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH" | ||
] | ||
|
||
[target.x86_64-unknown-linux-musl] | ||
image.name = "alpine:edge" | ||
image.toolchain = ["x86_64-unknown-linux-musl"] | ||
pre-build = ["apk add --no-cache build-base openssl-dev"] | ||
|
||
[target.aarch64-unknown-linux-musl] | ||
image.name = "alpine:edge" | ||
image.toolchain = ["aarch64-unknown-linux-musl"] | ||
pre-build = ["apk add --no-cache build-base openssl-dev"] |