Commit c5d71a18 authored by Simon McVittie's avatar Simon McVittie

ci: Use ccache to speed up repeated builds

Signed-off-by: Simon McVittie's avatarSimon McVittie <smcv@collabora.com>
(cherry picked from commit d0728fd0)
parent 5c204a9e
......@@ -3,6 +3,7 @@
*.rej
*.o
*~
/.ccache/
/build-aux/
compile
config.cache
......
......@@ -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"
......
......@@ -126,6 +126,7 @@ case "$ci_distro" in
autoconf-archive \
automake \
autotools-dev \
ccache \
cmake \
debhelper \
dh-autoreconf \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment