From ada0fc6bb3252a20da4bfd2e785243c2adc37eb5 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sat, 12 Nov 2022 23:53:09 +0100 Subject: [PATCH] sccache: generate stats and publish them --- debian/rules | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index 93d1f0c3..380b4df5 100755 --- a/debian/rules +++ b/debian/rules @@ -755,7 +755,8 @@ sccache-stats: # If we used sccache, shows stats if test -f /opt/sccache/sccache; then \ ls -al /opt/sccache/; \ - /opt/sccache/sccache --show-stats; \ + /opt/sccache/sccache --stats-format json --show-stats > /tmp/buildd/sccache-stats.json; \ + cat /tmp/buildd/sccache-stats.json; \ fi touch $@ @@ -1169,7 +1170,7 @@ override_dh_auto_test: endif -override_dh_gencontrol: +override_dh_gencontrol: sccache-stats dh_gencontrol -- $(control_vars)