From 15aac5c2e028778176856ac122a1c871fd0d2297 Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Sun, 5 Jan 2020 14:28:04 +0100 Subject: [PATCH] Cache CI --- .gitlab-ci.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 232d76a..7213b91 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,7 +3,7 @@ stages: - test # Cache -cache: +cache: &girara_cache key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG" paths: - subprojects/girara @@ -18,6 +18,8 @@ build:archlinux: - mkdir -p build && cd build - meson .. - ninja + cache: + <<: *girara_cache artifacts: expire_in: 1 day paths: @@ -33,6 +35,9 @@ test:archlinux: script: - cd build - ninja test + cache: + <<: *girara_cache + policy: pull dependencies: - build:archlinux except: @@ -48,6 +53,8 @@ build:debian-buster: - mkdir -p build && cd build - meson .. - ninja + cache: + <<: *girara_cache artifacts: expire_in: 1 day paths: @@ -63,6 +70,9 @@ test:debian-buster: script: - cd build - ninja test + cache: + <<: *girara_cache + policy: pull dependencies: - build:debian-buster except: @@ -78,6 +88,8 @@ build:ubuntu-bionic: - mkdir -p build && cd build - meson .. - ninja + cache: + <<: *girara_cache artifacts: expire_in: 1 day paths: @@ -93,6 +105,9 @@ test:ubuntu-bionic: script: - cd build - ninja test + cache: + <<: *girara_cache + policy: pull dependencies: - build:ubuntu-bionic except: @@ -108,6 +123,8 @@ build:ubuntu-eoan: - mkdir -p build && cd build - meson .. - ninja + cache: + <<: *girara_cache artifacts: expire_in: 1 day paths: @@ -123,6 +140,9 @@ test:ubuntu-eoan: script: - cd build - ninja test + cache: + <<: *girara_cache + policy: pull dependencies: - build:ubuntu-eoan except: