[atkmm] CI: Use artifacts to transfer data between stages



commit 3291ac94a98ed42931e3d9b157a485333ce3520d
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Wed Mar 16 16:39:07 2022 +0100

    CI: Use artifacts to transfer data between stages

 .gitlab-ci.yml | 20 ++++++++------------
 1 file changed, 8 insertions(+), 12 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6924876..76bd5e9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -75,6 +75,14 @@ build_deps:
       - libsigc/
       - glibmm/
     policy: pull-push
+  # Transfer the built dependencies to later stages as artifacts.
+  # The cache does not always work.
+  # https://gitlab.gnome.org/Infrastructure/Infrastructure/-/issues/775
+  artifacts:
+    paths:
+      - libsigc/
+      - glibmm/
+    expire_in: 1 day
 
 release_gcc_build:
   extends: .build_default
@@ -90,12 +98,6 @@ release_gcc_build:
     - meson compile
     - meson test
     - meson install
-  cache:
-    key: build-deps
-    paths:
-      - libsigc/
-      - glibmm/
-    policy: pull
   artifacts:
     when: always
     paths:
@@ -116,12 +118,6 @@ release_clang_build:
     - meson test
     - meson install
   allow_failure: true
-  cache:
-    key: build-deps
-    paths:
-      - libsigc/
-      - glibmm/
-    policy: pull
   artifacts:
     when: on_failure
     paths:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]