[gobject-introspection] CI: use ccache



commit 8bcc831c5f80bdac44b360db5fbb16db118a6951
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Thu Jun 21 08:22:36 2018 +0200

    CI: use ccache

 .gitlab-ci.yml           | 7 +++++++
 .gitlab-ci/test-msys2.sh | 4 ++++
 2 files changed, 11 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cb91027e..74052943 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,9 +1,16 @@
 stages:
   - build
 
+cache:
+  paths:
+    - _ccache/
+
 fedora-x86_64:
   stage: build
   image: registry.gitlab.gnome.org/gnome/gobject-introspection:v1
+  variables:
+    CCACHE_BASEDIR: "${CI_PROJECT_DIR}"
+    CCACHE_DIR: "${CI_PROJECT_DIR}/_ccache"
   script:
     - meson --prefix /usr --libdir /usr/lib64 --buildtype debug -Dcairo=true _build .
     - cd _build
diff --git a/.gitlab-ci/test-msys2.sh b/.gitlab-ci/test-msys2.sh
index 5b5efe2a..707313f9 100644
--- a/.gitlab-ci/test-msys2.sh
+++ b/.gitlab-ci/test-msys2.sh
@@ -15,6 +15,7 @@ pacman --noconfirm -S --needed \
     git \
     base-devel \
     mingw-w64-$MSYS2_ARCH-toolchain \
+    mingw-w64-$MSYS2_ARCH-ccache \
     mingw-w64-$MSYS2_ARCH-meson \
     mingw-w64-$MSYS2_ARCH-python3 \
     mingw-w64-$MSYS2_ARCH-libffi \
@@ -25,6 +26,9 @@ pacman --noconfirm -S --needed \
     mingw-w64-$MSYS2_ARCH-zlib \
     mingw-w64-$MSYS2_ARCH-gettext
 
+export CCACHE_BASEDIR="${CI_PROJECT_DIR}"
+export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache"
+
 meson --buildtype debug _build
 cd _build
 ninja


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]