Skip to content

Commit

Permalink
Add Cargo.lock only to the release job (#958)
Browse files Browse the repository at this point in the history
* Add Cargo.lock to release job

* Pin tree-sitter to a specific version

* Remove Cargo.lock
  • Loading branch information
Luni-4 authored Dec 20, 2022
1 parent 524449d commit 25ce2d2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2,050 deletions.
7 changes: 6 additions & 1 deletion .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ tasks:
- "git clone --quiet ${repository} &&
cd rust-code-analysis &&
git -c advice.detachedHead=false checkout ${head_rev} &&
cargo update &&
cargo build --workspace --release &&
cargo package --all-features &&
pushd rust-code-analysis-cli && cargo package --all-features && popd &&
Expand All @@ -464,6 +465,10 @@ tasks:
expires: {$fromNow: '2 weeks'}
path: /rust-code-analysis-linux-web-x86_64.tar.gz
type: file
public/Cargo.lock:
expires: {$fromNow: '2 weeks'}
path: Cargo.lock
type: file
metadata:
name: rust-code-analysis linux release build
description: rust-code-analysis linux release build
Expand Down Expand Up @@ -556,7 +561,7 @@ tasks:
tar xfz book.tar.gz -C rust-code-analysis-book &&
./rust-code-analysis-book/deploy-to-GitHub-Pages &&
taskboot git-push --force-push github.com/mozilla/rust-code-analysis moz-tools-bot gh-pages &&
taskboot github-release mozilla/rust-code-analysis ${head_branch[10:]} --asset ${linux_cli}:public/${linux_cli} ${linux_web}:public/${linux_web} ${win_cli}:public/${win_cli} ${win_web}:public/${win_web} &&
taskboot github-release mozilla/rust-code-analysis ${head_branch[10:]} --asset Cargo.lock:public/Cargo.lock ${linux_cli}:public/${linux_cli} ${linux_web}:public/${linux_web} ${win_cli}:public/${win_cli} ${win_web}:public/${win_web} &&
rm -rf book.tar.gz"
metadata:
name: "rust-code-analysis release publication ${head_branch[10:]}"
Expand Down
Loading

0 comments on commit 25ce2d2

Please sign in to comment.