CI: Add caching

Maxime “pep” Buquet created

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>

Change summary

.gitlab-ci.yml | 8 ++++++++
1 file changed, 8 insertions(+)

Detailed changes

.gitlab-ci.yml 🔗

@@ -7,9 +7,17 @@ variables:
 
 .stable:
   image: rust:latest
+  cache:
+    key: stable
+    paths:
+      - target/
 
 .nightly:
   image: rustlang/rust:nightly
+  cache:
+    key: nightly
+    paths:
+      - target/
 
 .build:
   stage: build