Browse Source

Re-enable caching on CI, attempt to improve hits and performance

timvisee 6 years ago
parent
commit
30f0a67cda
1 changed files with 10 additions and 0 deletions
  1. 10 0
      .gitlab-ci.yml

+ 10 - 0
.gitlab-ci.yml

@@ -9,6 +9,16 @@ stages:
 variables:
 variables:
   RUST_VERSION: stable
   RUST_VERSION: stable
 
 
+# Cache rust/cargo/build artifacts
+cache:
+  key: "$CI_PIPELINE_ID-$RUST_VERSION"
+  untracked: true
+  paths:
+    - /usr/local/cargo/registry/
+    - /usr/local/rustup/toolchains/
+    - /usr/local/rustup/update-hashes/
+    - target/
+
 # Install compiler and OpenSSL dependencies
 # Install compiler and OpenSSL dependencies
 before_script:
 before_script:
   - apt-get update
   - apt-get update