Skip to content
This repository was archived by the owner on Dec 8, 2021. It is now read-only.

Commit e1a58fb

Browse files
authored
ci: preemptively create ccache config (#270)
1 parent 4de01ee commit e1a58fb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ci/kokoro/docker/build-in-docker-cmake.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ if [[ "${USE_NINJA:-}" == "yes" ]]; then
8585
cmake_extra_flags+=( "-GNinja" )
8686
fi
8787

88+
# From time to time the builds fail because this file does not exist, create it
89+
# just to make the builds more reliable.
90+
mkdir -p "${HOME}/.ccache"
91+
echo "max_size = 4.0G" >"${HOME}/.ccache/ccache.conf"
92+
8893
# We use parameter expansion for ${cmake_extra_flags} because set -u doesn't
8994
# like empty arrays on older versions of Bash (which some of our builds use).
9095
# The expression ${parameter+word} will expand word only if parameter is not

0 commit comments

Comments
 (0)