Commit b2fde2a0 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 ee8bf191
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
*.rej *.rej
*.o *.o
*~ *~
/.ccache/
/build-aux/ /build-aux/
compile compile
config.cache config.cache
......
...@@ -27,6 +27,16 @@ stages: ...@@ -27,6 +27,16 @@ stages:
before_script: before_script:
- ./tools/ci-install.sh - ./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: variables:
ci_in_docker: "yes" ci_in_docker: "yes"
......
...@@ -126,6 +126,7 @@ case "$ci_distro" in ...@@ -126,6 +126,7 @@ case "$ci_distro" in
autoconf-archive \ autoconf-archive \
automake \ automake \
autotools-dev \ autotools-dev \
ccache \
cmake \ cmake \
debhelper \ debhelper \
dh-autoreconf \ 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