Add a workaround for disk space failures on Docker

This commit is contained in:
Yuki Okushi 2020-04-20 06:35:02 +09:00
parent 1da0baa684
commit 9740c8c78e
No known key found for this signature in database
GPG Key ID: B0986C85C0E2DAA1

View File

@ -15,6 +15,12 @@ CARGO_HOME="${CARGO_HOME:-$DEFAULT_CARGO_HOME}"
echo "${HOME}"
pwd
# Avoid "no space left on device" failure.
if [ "${1}" = "aarch64-linux-android" ] ; then
docker system prune -af
docker system df
fi
run() {
echo "Building docker container for target ${1}"