1
0
mirror of https://github.com/lineageos4microg/docker-lineage-cicd synced 2024-11-09 10:09:56 +01:00

Make the ccache size configurable

This commit is contained in:
Nicola Corna 2017-11-06 16:31:11 +01:00
parent 633e8018e0
commit 51bc22ca56
2 changed files with 6 additions and 1 deletions

@ -23,6 +23,11 @@ ENV USER root
# WARNING: disabling this may slow down a lot your builds!
ENV USE_CCACHE 1
# ccache maximum size. It should be a number followed by an optional suffix: k,
# M, G, T (decimal), Ki, Mi, Gi or Ti (binary). The default suffix is G. Use 0
# for no limit.
ENV CCACHE_SIZE 50G
# Environment for the LineageOS Branch name
# See https://github.com/LineageOS/android_vendor_cm/branches for possible options
ENV BRANCH_NAME 'cm-14.1'

@ -25,7 +25,7 @@ find /root/userscripts ! -type d -perm /g=w,o=w -exec echo ">> [$(date)] {} is w
# Initialize CCache if it will be used
if [ "$USE_CCACHE" = 1 ]; then
ccache -M 100G 2>&1
ccache -M $CCACHE_SIZE 2>&1
fi
# Initialize Git user information