From 7636297cecfa4c3ebd667c7e90371489fcc64499 Mon Sep 17 00:00:00 2001
From: Geoffrey Arthaud <geoffrey.arthaud@developpement-durable.gouv.fr>
Date: Thu, 29 Feb 2024 22:24:36 +0100
Subject: [PATCH] Improve CI

---
 .gitlab-ci.yml | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e0594c2..79d3441 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,15 +6,10 @@ variables:
 
 default:
   cache:
-    key: rust-$TARGET_ARCH
+    key: rust-$CI_JOB_NAME
     paths:
       - .cargo
-      - target/debug/deps
-      - target/debug/build
-      - target/release/deps
-      - target/release/build
-      - target/$TARGET_ARCH/release/deps
-      - target/$TARGET_ARCH/release/build
+      - target
     policy: pull-push
 
 stages:
@@ -38,6 +33,7 @@ check-format:
 
 gitleaks:
   stage: build_test
+  cache: [ ]
 
 test-rust-current:
   stage: build_test
-- 
GitLab