mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 21:00:42 +02:00
We were using the old cargo-vendor, which tries to fetch dependencies in a way that crates.io dislikes, leading to spurious timeouts. Use the built-in command instead. We no longer need the --relative-path flag because the built-in one uses a relative path by default. MANUAL PUSH: Fixing tree closure, so need to push on CLOSED TREE. Differential Revision: https://phabricator.services.mozilla.com/D65882
26 lines
873 B
Bash
Executable file
26 lines
873 B
Bash
Executable file
#!/bin/bash
|
|
set -x -e -v
|
|
|
|
# This scripts uses `cargo-vendor` to download all the dependencies needed
|
|
# to test `wgpu`, and exports those dependencies as a tarball.
|
|
# This avoids having to download these dependencies on every test job
|
|
# that tests `wgpu`.
|
|
|
|
UPLOAD_DIR=$HOME/artifacts
|
|
|
|
cd $GECKO_PATH
|
|
export PATH=$PATH:$MOZ_FETCHES_DIR/rustc/bin:$HOME/.cargo/bin
|
|
cd gfx/wgpu/
|
|
mkdir .cargo
|
|
cargo vendor --sync ./Cargo.toml > .cargo/config
|
|
mkdir wgpu-deps
|
|
mv vendor .cargo wgpu-deps/
|
|
mkdir wgpu-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 wgpu-deps/cargo-apk cargo-apk
|
|
tar caf wgpu-deps.tar.bz2 wgpu-deps
|
|
|
|
mkdir -p $UPLOAD_DIR
|
|
mv wgpu-deps.tar.bz2 $UPLOAD_DIR/
|