mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-31 02:31:07 +00:00
ci: Always print low ccache hit rate notice
This commit is contained in:
parent
f7e0c3d3d3
commit
fad2876ec3
@ -148,11 +148,9 @@ cmake --build "${BASE_BUILD_DIR}" "$MAKEJOBS" --target $GOAL || (
|
|||||||
)
|
)
|
||||||
|
|
||||||
bash -c "${PRINT_CCACHE_STATISTICS}"
|
bash -c "${PRINT_CCACHE_STATISTICS}"
|
||||||
if [ "$CI" = "true" ]; then
|
hit_rate=$(ccache --show-stats | grep "Hits:" | head -1 | sed 's/.*(\(.*\)%).*/\1/')
|
||||||
hit_rate=$(ccache -s | grep "Hits:" | head -1 | sed 's/.*(\(.*\)%).*/\1/')
|
if [ "${hit_rate%.*}" -lt 75 ]; then
|
||||||
if [ "${hit_rate%.*}" -lt 75 ]; then
|
echo "::notice title=low ccache hitrate::Ccache hit-rate in $CONTAINER_NAME was $hit_rate%"
|
||||||
echo "::notice title=low ccache hitrate::Ccache hit-rate in $CONTAINER_NAME was $hit_rate%"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
du -sh "${DEPENDS_DIR}"/*/
|
du -sh "${DEPENDS_DIR}"/*/
|
||||||
du -sh "${PREVIOUS_RELEASES_DIR}"
|
du -sh "${PREVIOUS_RELEASES_DIR}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user