diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2017-09-11 22:26:18 +0300 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2017-10-02 17:26:22 +0200 |
commit | 96369e52fcc14bbfc76c496ffd62d4ff2908aa7e (patch) | |
tree | 31c0afd8b97567557c17cadb328caaeb33d2da50 | |
parent | 01e80acb56297c9fe114513e98d89939b2c21317 (diff) | |
download | gnutls-tmp-ccache.tar.gz |
.gitlab-ci.yml: use ccachetmp-ccache
Building takes too much time. Use per-job ccache to speed up builds.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
-rw-r--r-- | .gitlab-ci.yml | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8e7467cbb4..68e33caf32 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,24 @@ stages: - stage1-testing +cache: + key: "$CI_JOB_NAME/$CI_COMMIT_REF_NAME" + paths: + - ccache/ + +before_script: + # CCache Config + - mkdir -p ccache + - export CCACHE_BASEDIR=${PWD} + - export CCACHE_DIR=${PWD}/ccache + - export CC="ccache gcc" + +after_script: + # somehow after_script looses environment + - export CCACHE_BASEDIR=${PWD} + - export CCACHE_DIR=${PWD}/ccache + - ccache -s + # we utilize the images generated by the build-images project, to # speed up CI runs. @@ -352,7 +370,7 @@ Fedora/x86: script: - git submodule update --init --no-fetch - make autoreconf && mkdir -p build && cd build && - CC="gcc -m32" PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig/ ../configure --host=i686-redhat-linux --target=i686-redhat-linux --libdir=/usr/lib --disable-cxx --disable-non-suiteb-curves --enable-seccomp-tests --disable-doc --disable-guile && + CC="ccache gcc -m32" PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig/ ../configure --host=i686-redhat-linux --target=i686-redhat-linux --libdir=/usr/lib --disable-cxx --disable-non-suiteb-curves --enable-seccomp-tests --disable-doc --disable-guile && make -j$(nproc) && make check -j$(nproc) && make pic-check tags: @@ -427,7 +445,7 @@ Debian/aarch64: - /bin/true script: - make autoreconf && mkdir -p build && cd build && - ../configure --disable-doc --disable-guile --disable-full-test-suite && + CC="ccache gcc" ../configure --disable-doc --disable-guile --disable-full-test-suite && make -j$(nproc) && make check -j$(nproc) tags: - aarch64 |