From 607c030e5da9496100072a42be408789316d1f6f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Vallv=C3=A9=20Navarro?= <jvallve@iri.upc.edu>
Date: Thu, 25 Nov 2021 14:41:24 +0100
Subject: [PATCH] new folder 'ci_deps' for cache

---
 .gitlab-ci.yml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index dc37ba5..cdfb658 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -27,6 +27,9 @@ stages:
   # update apt
   - apt-get update
 
+  # create 'ci_deps' folder (if not exists)
+  - mkdir -pv ci_deps
+
 .license_header_template: &license_header_definition
   - cd $CI_PROJECT_DIR
 
@@ -65,7 +68,7 @@ stages:
   - fi
 
 .install_csm_template: &install_csm_definition
-  - cd $CI_BUILDS_DIR
+  - cd $CI_PROJECT_DIR/ci_deps
   - apt-get install -y libgsl-dev
   - if [ -d csm ]; then
   -   echo "directory csm exists"
@@ -80,7 +83,7 @@ stages:
   - make install
 
 .install_falko_template: &install_falko_definition
-  - cd $CI_BUILDS_DIR
+  - cd $CI_PROJECT_DIR/ci_deps
   - if [ -d falkolib ]; then
   -   echo "directory falkolib exists" 
   -   cd falkolib
-- 
GitLab