[librsvg] gitlab-ci: Create .cargo_cache if it does not exist.



commit 00de240dfcff5dc85d30afb80b9935bb8f6e63b9
Author: Jordan Petridis <jordanpetridis protonmail com>
Date:   Fri Mar 2 12:03:34 2018 +0200

    gitlab-ci: Create .cargo_cache if it does not exist.

 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b88071f7..3bba9c56 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,13 +10,14 @@ stages:
   before_script:
     # CCache Config
     - mkdir -p ccache
+    - mkdir -p .cargo_cache
     - export CCACHE_BASEDIR=${PWD}
     - export CCACHE_DIR=${PWD}/ccache
     - export CC="ccache gcc"
 
     # Only stuff inside the repo directory can be cached
     # Override the CARGO_HOME variable to force it location
-    - export CARGO_HOME=".cargo_cache/"
+    - export CARGO_HOME="${PWD}/cargo_cache"
   script:
     - rustc --version && cargo --version
     - ./autogen.sh


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