diff --git a/.taskcluster.yml b/.taskcluster.yml index 11a91af7f..d54b92228 100644 --- a/.taskcluster.yml +++ b/.taskcluster.yml @@ -233,14 +233,17 @@ tasks: command: - "/bin/bash" - "-cx" - - "git clone --recursive --quiet ${repository} && + - "apt-get update && + apt-get install -y musl && + rustup target add x86_64-unknown-linux-musl && + git clone --recursive --quiet ${repository} && cd rust-code-analysis && git -c advice.detachedHead=false checkout --recurse-submodules ${head_rev} && - cargo build --all --release && - cargo package --all-features && - pushd rust-code-analysis-cli && cargo package --all-features && popd && - pushd rust-code-analysis-web && cargo package --all-features && popd && - cd target/release && + env CC=\"gcc\" CXX=\"g++\" cargo build --workspace --release --target x86_64-unknown-linux-musl && + env CC=\"gcc\" CXX=\"g++\" cargo package --all-features --target x86_64-unknown-linux-musl && + pushd rust-code-analysis-cli && env CC=\"gcc\" CXX=\"g++\" cargo package --all-features --target x86_64-unknown-linux-musl && popd && + pushd rust-code-analysis-web && env CC=\"gcc\" CXX=\"g++\" cargo package --all-features --target x86_64-unknown-linux-musl && popd && + cd target/x86_64-unknown-linux-musl/release && strip rust-code-analysis-cli rust-code-analysis-web && tar -zvcf /rust-code-analysis-linux-cli-x86_64.tar.gz rust-code-analysis-cli && tar -zvcf /rust-code-analysis-linux-web-x86_64.tar.gz rust-code-analysis-web"