Backed out changeset 2fc34d798e24 (bug 1917771) for causing failures at baseline...
[gecko.git] / taskcluster / scripts / misc / wrench-deps-vendoring.sh
blob7fd77bc07416204aec879cbb00e7bf5d2e0056a9
1 #!/bin/bash
2 set -x -e -v
4 # This scripts uses `cargo-vendor` to download all the dependencies needed
5 # to build `wrench` (a tool used for standalone testing of webrender), and
6 # exports those dependencies as a tarball. This avoids having to download
7 # these dependencies on every test job that uses `wrench`.
9 UPLOAD_DIR=$HOME/artifacts
11 cd $GECKO_PATH
12 export PATH=$PATH:$MOZ_FETCHES_DIR/rustc/bin:$HOME/.cargo/bin
13 cd gfx/wr/
14 mkdir .cargo
15 cargo vendor --locked --sync ./Cargo.toml > .cargo/config.toml
16 mkdir wrench-deps
17 mv vendor .cargo wrench-deps/
19 ci-scripts/install-meson.sh
20 mv meson wrench-deps/meson
22 mkdir -p $UPLOAD_DIR
23 tar caf $UPLOAD_DIR/wrench-deps.tar.zst wrench-deps