ci: Use ccache to speed up repeated builds

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2018-10-04 10:50:37 +01:00
parent 408b222a9f
commit d0728fd06e
3 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View file

@ -3,6 +3,7 @@
*.rej
*.o
*~
/.ccache/
/build-aux/
compile
config.cache

View file

@ -27,6 +27,16 @@ stages:
before_script:
- ./tools/ci-install.sh
- mkdir -p .ccache
- export CCACHE_BASEDIR="$(pwd)"
- export CCACHE_DIR="$CCACHE_BASEDIR/.ccache"
# Debian's ccache package creates symlinks here for all supported
# compilers
- export PATH="/usr/lib/ccache:$PATH"
cache:
paths:
- .ccache/
variables:
ci_in_docker: "yes"

View file

@ -126,6 +126,7 @@ case "$ci_distro" in
autoconf-archive \
automake \
autotools-dev \
ccache \
cmake \
debhelper \
dh-autoreconf \