Skip to content

Commit

Permalink
WIP musl building
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 committed Jan 11, 2021
1 parent 6a9084d commit a20b631
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .taskcluster.yml
Expand Up @@ -147,6 +147,44 @@ tasks:
owner: cdenizet@mozilla.com
source: ${repository}/raw/${head_rev}/.taskcluster.yml

- taskId: {$eval: as_slugid("build_linux_release")}
dependencies:
- {$eval: as_slugid("lint_test_task")}
- {$eval: as_slugid("windows_test_task")}
created: {$fromNow: ''}
deadline: {$fromNow: '2 hour'}
provisionerId: proj-relman
workerType: ci
payload:
maxRunTime: 3600
image: "rust:buster"
command:
- "/bin/bash"
- "-cx"
- "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 --workspace --release --target x86_64-unknown-linux-musl &&
cd target/release/x86_64-unknown-linux-musl &&
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"
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
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
type: file
metadata:
name: rust-code-analysis linux release build
description: rust-code-analysis linux release build
owner: cdenizet@mozilla.com
source: ${repository}/raw/${head_rev}/.taskcluster.yml

- $if: 'tasks_for == "github-push" && head_branch[:10] == "refs/tags/"'
then:
taskId: {$eval: as_slugid("test_mozilla_central")}
Expand Down

0 comments on commit a20b631

Please sign in to comment.