-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
37 lines (31 loc) · 1.21 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
_:
@just --list
## cross build x86-64 musl debug
#cross-build-x64-debug:
# cross build --target x86_64-unknown-linux-musl
## cross build x86-64 musl release
#cross-build-x64:
# cross build --target x86_64-unknown-linux-musl --release
# cross build x86-64 musl release(for openssl)
cross-build-x64-musl:
docker run --rm -it \
-v "$(echo $HOME)/.cargo_messense_rust-musl-cross_x86_64-musl_registry":/root/.cargo/registry/ \
-v "$(pwd)":/home/rust/src \
messense/rust-musl-cross:x86_64-musl \
cargo build --release
# cross build x86-64 musl release(for openssl) 2
cross-build-x64-musl-2:
docker run --rm -it \
-v "$(echo $HOME)/.cargo/config":/root/.cargo/config \
-v "$(echo $HOME)/.cargo_messense_rust-musl-cross_x86_64-musl_registry":/root/.cargo/registry/ \
-v "$(pwd)":/home/rust/src \
messense/rust-musl-cross:x86_64-musl \
cargo build --release
# cross build x86-64 musl release(for openssl) 3
cross-build-x64-musl-3:
docker run --rm -it \
-v "$(echo $HOME)/.cargo/config":/root/.cargo/config \
-v "$(echo $HOME)/.cargo_messense_rust-musl-cross_x86_64-musl_registry":/root/.cargo/registry/ \
-v "$(pwd)":/volume \
clux/muslrust \
cargo build --release --target=x86_64-unknown-linux-musl