Skip to content

Commit

Permalink
ci: Limit cache size regardless of NO_DEPENDS
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Apr 16, 2020
1 parent 79b0459 commit 0c63187
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ci/test/06_script_a.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
export LC_ALL=C.UTF-8

BITCOIN_CONFIG_ALL="--disable-dependency-tracking --prefix=$DEPENDS_DIR/$HOST --bindir=$BASE_OUTDIR/bin --libdir=$BASE_OUTDIR/lib"
DOCKER_EXEC "command -v ccache > /dev/null && ccache --zero-stats"
if [ -z "$NO_DEPENDS" ]; then
DOCKER_EXEC ccache --max-size=$CCACHE_SIZE
fi
DOCKER_EXEC "ccache --zero-stats --max-size=$CCACHE_SIZE"

BEGIN_FOLD autogen
if [ -n "$CONFIG_SHELL" ]; then
Expand Down Expand Up @@ -47,5 +44,5 @@ DOCKER_EXEC make $MAKEJOBS $GOAL || ( echo "Build failure. Verbose build follows
END_FOLD

BEGIN_FOLD ccache_stats
DOCKER_EXEC "command -v ccache > /dev/null && ccache --version | head -n 1 && ccache --show-stats"
DOCKER_EXEC "ccache --version | head -n 1 && ccache --show-stats"
END_FOLD

0 comments on commit 0c63187

Please sign in to comment.