sccache: generate stats and publish them

This commit is contained in:
Sylvestre Ledru 2022-11-12 23:53:09 +01:00
parent 160ea57318
commit ada0fc6bb3

5
debian/rules vendored
View File

@ -755,7 +755,8 @@ sccache-stats:
# If we used sccache, shows stats # If we used sccache, shows stats
if test -f /opt/sccache/sccache; then \ if test -f /opt/sccache/sccache; then \
ls -al /opt/sccache/; \ 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 fi
touch $@ touch $@
@ -1169,7 +1170,7 @@ override_dh_auto_test:
endif endif
override_dh_gencontrol: override_dh_gencontrol: sccache-stats
dh_gencontrol -- $(control_vars) dh_gencontrol -- $(control_vars)