[gimp-help/wip/wormnest/ci] ci experimenting




commit 529074ea260dee54872c27fdc2c941e2e60e1f63
Author: Jacob Boerema <jgboerema gmail com>
Date:   Thu Mar 3 21:47:13 2022 -0500

    ci experimenting

 .gitlab-ci.yml | 30 ++++++++++++++++++++++--------
 1 file changed, 22 insertions(+), 8 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d8cbc4e8f..ddc811ea4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,7 @@
 image: debian:testing
 
 stages:
+  - prepare
   - build
 
 variables:
@@ -8,14 +9,9 @@ variables:
   INSTALL_PREFIX: "${CI_PROJECT_DIR}/${INSTALL_DIR}"
   LINGUAS: "en"
 
-build-debian:
-  stage: build
-  artifacts:
-    expire_in: 1 week
-    when: always
-    paths:
-    - www/
-    - html/
+prepare-debian:
+  stage: prepare
+  cache: {}
   before_script:
     - apt-get update
     - apt-get install -y --no-install-recommends
@@ -37,6 +33,22 @@ build-debian:
     - mkdir _build
     - cd _build
     - ../autogen.sh --prefix=${INSTALL_PREFIX} --without-gimp
+
+build-debian:
+  stage: build
+  dependencies:
+    - prepare-debian
+  cache:
+    paths:
+    - apt-cache
+
+  artifacts:
+    expire_in: 1 week
+    when: always
+    paths:
+    - www/
+    - html/
+  script:
     - make && make install
     - mv ${INSTALL_PREFIX}/share/gimp/2.0/help/ ../www/
     - cd ../web
@@ -46,3 +58,5 @@ build-debian:
     - cd ../_build/quickreference
     - mv ./pdf/ ../../html/2.10/pdf/
   timeout: 2 hours 30 minutes
+
+  needs: ["prepare-debian"]


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