Explorar o código

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

timvisee %!s(int64=6) %!d(string=hai) anos
pai
achega
30f0a67cda
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      .gitlab-ci.yml

+ 10 - 0
.gitlab-ci.yml

@@ -9,6 +9,16 @@ stages:
 variables:
   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
 before_script:
   - apt-get update