tor-browser

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

wr-cargotest-macos-build.sh (732B)


      1 #!/bin/bash
      2 set -x -e -v
      3 
      4 source ${GECKO_PATH}/taskcluster/scripts/misc/wr-macos-cross-build-setup.sh
      5 
      6 export UPLOAD_DIR="${HOME}/artifacts"
      7 mkdir -p "${UPLOAD_DIR}"
      8 
      9 # Do a cross-build for cargo test run
     10 pushd "${GECKO_PATH}/gfx/wr"
     11 CARGOFLAGS="-vv --frozen --target=${TARGET_TRIPLE}" \
     12    CARGOTESTFLAGS="--no-run" \
     13    ci-scripts/macos-debug-tests.sh
     14 # Package up the test binaries
     15 cd "target/${TARGET_TRIPLE}"
     16 mkdir cargo-test-binaries
     17 mv debug cargo-test-binaries/
     18 find cargo-test-binaries/debug/deps -type f -maxdepth 1 -executable -print0 > binaries.lst
     19 tar cjf cargo-test-binaries.tar.bz2 --null -T binaries.lst
     20 mv cargo-test-binaries.tar.bz2 "${UPLOAD_DIR}"
     21 # Clean the build
     22 cd "${GECKO_PATH}/gfx/wr"
     23 rm -rf target
     24 popd