Просмотр исходного кода

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

timvisee 6 лет назад
Родитель
Сommit
30f0a67cda
1 измененных файлов с 10 добавлено и 0 удалено
  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