From: Michał Kępień Date: Fri, 9 Mar 2018 13:09:26 +0000 (+0100) Subject: Tweak the way ccache is used during CI X-Git-Tag: v9.13.0~103^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09004c25a8e99043f232d647a672094ff7445105;p=thirdparty%2Fbind9.git Tweak the way ccache is used during CI Our current CI configuration causes ccache data to be zipped after each job and also included in build artifacts, which will quickly become infeasible as ccache data grows. Instead of asking gitlab-runner to preserve ccache data between jobs, keep a separate ccache directory on each runner, expecting it to be accessible at /ccache when a CI job is run. As this requires gitlab-runner to be configured in a specific way, do not use ccache at all in case the ccache directory is not found while building. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2399b6a60de..e05008b0413 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -85,7 +85,7 @@ stages: .build: &build_job stage: build before_script: - - export PATH="/usr/lib/ccache:$PATH" + - test -w "${CCACHE_DIR}" && export PATH="/usr/lib/ccache:${PATH}" - ./autogen.sh script: - ./configure --enable-developer --with-libtool --disable-static --with-atf=/usr/local