forked from mirrors/gecko-dev
We leave the following ones unchanged: - geckodriver because the results are used to releases on github. - sixgill because the script that creates it is not in-tree. - *-dist-toolchain because sccache is not expecting a .tar.zst. We use native tar support in most cases, except for toolchain scripts also used on Windows, for which we use our zstdpy script. Differential Revision: https://phabricator.services.mozilla.com/D124733
28 lines
971 B
Bash
Executable file
28 lines
971 B
Bash
Executable file
#!/bin/bash
|
|
set -x -e -v
|
|
|
|
# This scripts uses `cargo-vendor` to download all the dependencies needed
|
|
# to build `wrench` (a tool used for standalone testing of webrender), and
|
|
# exports those dependencies as a tarball. This avoids having to download
|
|
# these dependencies on every test job that uses `wrench`.
|
|
|
|
UPLOAD_DIR=$HOME/artifacts
|
|
|
|
cd $GECKO_PATH
|
|
export PATH=$PATH:$MOZ_FETCHES_DIR/rustc/bin:$HOME/.cargo/bin
|
|
cd gfx/wr/
|
|
mkdir .cargo
|
|
cargo vendor --sync ./Cargo.toml > .cargo/config
|
|
mkdir wrench-deps
|
|
mv vendor .cargo wrench-deps/
|
|
mkdir wrench-deps/cargo-apk
|
|
# Until there's a version of cargo-apk published on crates.io that has
|
|
# https://github.com/rust-windowing/android-rs-glue/pull/223, we need to use
|
|
# an unpublished version.
|
|
cargo install --path $MOZ_FETCHES_DIR/android-rs-glue/cargo-apk --root wrench-deps/cargo-apk cargo-apk
|
|
|
|
ci-scripts/install-meson.sh
|
|
mv meson wrench-deps/meson
|
|
|
|
mkdir -p $UPLOAD_DIR
|
|
tar caf $UPLOAD_DIR/wrench-deps.tar.zst wrench-deps
|