mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 02:58:01 +02:00
ci: Use ccache to speed up repeated builds
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
408b222a9f
commit
d0728fd06e
3 changed files with 12 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue