Skip to content

Commit 52350a7

Browse files
author
y-p
committed
BLD: travis, skip cache upload when no changes
1 parent 83f7679 commit 52350a7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ci/submit_ccache.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
ccache -s
44

5+
MISSES=$(ccache -s | grep "cache miss" | grep -Po "\d+")
6+
echo "MISSES: $MISSES"
7+
8+
if [ x"$MISSES" == x"0" ]; then
9+
echo "No cache misses detected, skipping upload"
10+
exit 0
11+
fi
12+
513
if [ "$IRON_TOKEN" ]; then
614
rm -rf ~/ccache.7z
715

0 commit comments

Comments
 (0)