fune/taskcluster/scripts/misc/build-makecab.sh
Mike Hommey 7025e04613 Bug 1706543 - Use native zstd to compress toolchain artifacts. r=firefox-build-system-reviewers,andi,mhentges
Now that docker images have been upgraded to Debian buster, we can
install a native zstd binary and use tar's native support rather than
relying on piping the output of tar to a python script that uses the
python-zstandard module. At least we can do that for toolchain tasks
that run on such docker images, which also means we can't on Mac and
Windows.

Differential Revision: https://phabricator.services.mozilla.com/D112894
2021-04-21 22:29:34 +00:00

17 lines
473 B
Bash
Executable file

#!/bin/bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
set -x -e -v
export PATH="$MOZ_FETCHES_DIR/rustc/bin:$PATH"
cd $MOZ_FETCHES_DIR/rust-makecab
cargo build --verbose --release
mkdir makecab
cp target/release/makecab makecab/
tar caf makecab.tar.zst makecab
mkdir -p $UPLOAD_DIR
cp makecab.tar.zst $UPLOAD_DIR