fune/taskcluster/scripts/misc/build-liblowercase.sh
Mike Hommey 9ef9a07ff2 Bug 1729406 - Use .tar.zst for most toolchain artifacts. r=firefox-build-system-reviewers,andi
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
2021-09-08 23:46:51 +00:00

19 lines
537 B
Bash
Executable file

#!/bin/bash
set -x -e -v
: WORKSPACE ${WORKSPACE:=/builds/worker/workspace}
# This script is for building liblowercase
PATH="$MOZ_FETCHES_DIR/rustc/bin:$PATH"
cd $GECKO_PATH/build/liblowercase
cargo build --verbose --release --target-dir $WORKSPACE/obj
mkdir $WORKSPACE/liblowercase
cp $WORKSPACE/obj/release/liblowercase.so $WORKSPACE/liblowercase
strip $WORKSPACE/liblowercase/liblowercase.so
tar -C $WORKSPACE -acf $WORKSPACE/liblowercase.tar.zst liblowercase
mkdir -p $UPLOAD_DIR
cp $WORKSPACE/liblowercase.tar.zst $UPLOAD_DIR