Skip to content

Commit 5a30dfc

Browse files
committed
Build linux release using musl
1 parent 7b4df39 commit 5a30dfc

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.taskcluster.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,15 @@ tasks:
199199
command:
200200
- "/bin/bash"
201201
- "-cx"
202-
- "git clone --recursive --quiet ${repository} &&
202+
- "apt-get update &&
203+
apt-get install -y musl &&
204+
rustup target add x86_64-unknown-linux-musl &&
205+
git clone --recursive --quiet ${repository} &&
203206
cd rust-code-analysis &&
204207
git -c advice.detachedHead=false checkout --recurse-submodules ${head_rev} &&
205-
cargo build --all --release &&
206-
cargo package --all-features &&
207-
cd target/release &&
208+
env CC=\"gcc\" CXX=\"g++\" cargo build --workspace --release --target x86_64-unknown-linux-musl &&
209+
env CC=\"gcc\" CXX=\"g++\" cargo package --target x86_64-unknown-linux-musl &&
210+
cd target/x86_64-unknown-linux-musl/release &&
208211
strip rust-code-analysis-cli rust-code-analysis-web &&
209212
tar -zvcf /rust-code-analysis-linux-cli-x86_64.tar.gz rust-code-analysis-cli &&
210213
tar -zvcf /rust-code-analysis-linux-web-x86_64.tar.gz rust-code-analysis-web"

0 commit comments

Comments
 (0)