tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

wrench-deps-vendoring.sh (680B)


      1 #!/bin/bash
      2 set -x -e -v
      3 
      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`.
      8 
      9 UPLOAD_DIR=$HOME/artifacts
     10 
     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/
     18 
     19 ci-scripts/install-meson.sh
     20 mv meson wrench-deps/meson
     21 
     22 mkdir -p $UPLOAD_DIR
     23 tar caf $UPLOAD_DIR/wrench-deps.tar.zst wrench-deps