Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Linux release binaries with the musl library #413

Merged
merged 1 commit into from
Jan 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,29 +229,29 @@ tasks:
workerType: ci
payload:
maxRunTime: 3600
image: "rust:buster"
image: "ekidd/rust-musl-builder:stable"
command:
- "/bin/bash"
- "-cx"
- "git clone --recursive --quiet ${repository} &&
cd rust-code-analysis &&
git -c advice.detachedHead=false checkout --recurse-submodules ${head_rev} &&
cargo build --workspace --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 &&
cargo build --workspace --release --target x86_64-unknown-linux-musl &&
cargo package --all-features --target x86_64-unknown-linux-musl &&
pushd rust-code-analysis-cli && cargo package --all-features --target x86_64-unknown-linux-musl && popd &&
pushd rust-code-analysis-web && 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"
tar -zvcf /home/rust/rust-code-analysis-linux-cli-x86_64.tar.gz rust-code-analysis-cli &&
tar -zvcf /home/rust/rust-code-analysis-linux-web-x86_64.tar.gz rust-code-analysis-web"
artifacts:
public/rust-code-analysis-linux-cli-x86_64.tar.gz:
expires: {$fromNow: '2 weeks'}
path: /rust-code-analysis-linux-cli-x86_64.tar.gz
path: /home/rust/rust-code-analysis-linux-cli-x86_64.tar.gz
type: file
public/rust-code-analysis-linux-web-x86_64.tar.gz:
expires: {$fromNow: '2 weeks'}
path: /rust-code-analysis-linux-web-x86_64.tar.gz
path: /home/rust/rust-code-analysis-linux-web-x86_64.tar.gz
type: file
metadata:
name: rust-code-analysis linux release build
Expand Down