[gimp/wip/Jehan/more-CI-build] gitlab-ci: fix crossroad caching.



commit f49596c1c213414eb74630b009992baa84ca37c5
Author: Jehan <jehan girinstud io>
Date:   Tue Oct 1 13:44:42 2019 +0200

    gitlab-ci: fix crossroad caching.
    
    This should hopefully speed up successive builds as most packages don't
    need to be re-downloaded.

 .gitlab-ci.yml | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 23aea0f22b..5a83a1b5fc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,8 +13,6 @@ variables:
 cache:
   paths:
   - _pacman_cache
-  - dnf_cache
-  - .cache/crossroad/
 
 .babl-base:
   stage: babl
@@ -226,6 +224,9 @@ build-git-meson:
   artifacts:
     paths:
     - "${INSTALL_DIR}"
+  cache:
+    paths:
+    - dnf_cache
   before_script:
     - dnf install --assumeyes --setopt=cachedir=`pwd`/dnf_cache --verbose
         automake
@@ -265,6 +266,11 @@ build-git-meson:
 
 build-git-x86_64-w64-mingw32-meson:
   extends: .gimp-x86_64-w64-mingw32-base
+  variables:
+    XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache/"
+  cache:
+    paths:
+    - .cache/crossroad/
   script:
     - export SHELL
     - crossroad w64 gimp --run="build/windows/crossbuild-gitlab-ci.sh"


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