-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add task to cache cargo crates and use it for MacOS/Windows builds (#…
…9841) * Add task to cache cargo crates and use it for MacOS builds * Bug: Taskcluster transforms fail if the toolchain has no env * Windows: Use crate toolchain and skip build/source * Windows: remove unnecessary dep on build/source * Convert WIREGUARD_FOLDER to CMake paths
- Loading branch information
Showing
8 changed files
with
71 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
--- | ||
cargo-vendor: | ||
description: "Vendored Rust Crates" | ||
worker-type: b-linux | ||
worker: | ||
env: | ||
FOO: bar # Bug: taskcluster fails if there is no env key? | ||
max-run-time: 3600 | ||
docker-image: {in-tree: build} | ||
treeherder: | ||
symbol: TL(cargo-vendor) | ||
run: | ||
script: cargo_vendor_crates.sh | ||
resources: | ||
- Cargo.lock | ||
toolchain-alias: cargo-vendor | ||
toolchain-artifact: public/build/cargo-vendor.tar.xz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,3 +29,4 @@ tasks-from: | |
- conda_windows.yml | ||
- conda_osx.yml | ||
- flatpak.yml | ||
- cargo.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
set -e | ||
|
||
cargo vendor --manifest-path $VCS_PATH/Cargo.toml $(pwd)/cargo-vendor | ||
tar -cJf $UPLOAD_DIR/cargo-vendor.tar.xz cargo-vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters