diff options
Diffstat (limited to '.gitlab-ci.yml')
-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 |