Skip to content

Commit 6d48066

Browse files
committed
ci: Print ccache statistics summary
1 parent a6eea71 commit 6d48066

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ci/test/06_script_a.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
export LC_ALL=C.UTF-8
88

99
BITCOIN_CONFIG_ALL="--disable-dependency-tracking --prefix=$DEPENDS_DIR/$HOST --bindir=$BASE_OUTDIR/bin --libdir=$BASE_OUTDIR/lib"
10+
DOCKER_EXEC "command -v ccache > /dev/null && ccache --zero-stats"
1011
if [ -z "$NO_DEPENDS" ]; then
1112
DOCKER_EXEC ccache --max-size=$CCACHE_SIZE
1213
fi
@@ -44,3 +45,7 @@ trap 'DOCKER_EXEC "cat ${BASE_SCRATCH_DIR}/sanitizer-output/* 2> /dev/null"' ERR
4445
BEGIN_FOLD build
4546
DOCKER_EXEC make $MAKEJOBS $GOAL || ( echo "Build failure. Verbose build follows." && DOCKER_EXEC make $GOAL V=1 ; false )
4647
END_FOLD
48+
49+
BEGIN_FOLD ccache_stats
50+
DOCKER_EXEC "command -v ccache > /dev/null && ccache --version | head -n 1 && ccache --show-stats"
51+
END_FOLD

0 commit comments

Comments
 (0)