]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
chg: dev: Use ccache to speed-up the builds
authorOndřej Surý <ondrej@sury.org>
Tue, 6 Mar 2018 19:49:49 +0000 (20:49 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 8 Mar 2018 13:10:32 +0000 (08:10 -0500)
.gitlab-ci.yml

index 754ddd0af9b983fd7c6855f73d55df5333601c0c..04135df632023504ab7d92605ffedefce2f01892 100644 (file)
@@ -84,6 +84,8 @@ stages:
 .build: &build_job
   stage: build
   before_script:
+    - export PATH="/usr/lib/ccache:$PATH"
+    - export CCACHE_DIR="$CI_PROJECT_DIR/.ccache"
     - ./autogen.sh
   script:
     - ./configure --with-libtool --disable-static
@@ -91,6 +93,10 @@ stages:
   artifacts:
     expire_in: '1 hour'
     untracked: true
+  cache:
+    key: ccache
+    paths:
+    - .ccache/
 
 .test: &test_job
   stage: test