fune/taskcluster/scripts/misc/repack-android-emulator-linux.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

23 lines
836 B
Bash
Executable file

#!/bin/bash
set -x -e -v
# This script is for fetching and repacking the Android emulator (for
# Linux), the tools required to produce Android packages.
UPLOAD_DIR=$HOME/project/gecko/android-emulator
mkdir -p $HOME/artifacts $UPLOAD_DIR
# Populate /builds/worker/.mozbuild/android-emulator-linux.
cd $GECKO_PATH
./mach python python/mozboot/mozboot/android.py --emulator-only --no-interactive
# Remove extra files we don't need
rm -rfv /builds/worker/.mozbuild/android-sdk-linux/tools
mkdir /builds/worker/.mozbuild/android-sdk-linux/system-images
mkdir /builds/worker/.mozbuild/android-sdk-linux/platforms
find /builds/worker/.mozbuild/android-sdk-linux/emulator/qemu -type f -not -name "*x86*" -print -delete
tar cavf $UPLOAD_DIR/android-emulator-linux.tar.zst -C /builds/worker/.mozbuild android-sdk-linux
ls -al $UPLOAD_DIR