diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 76228a2fc61c85d8dba52b4c64f69b0ab88eadfa..9a990c168720e9a51a92c63de59bab68b5f998f6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -67,10 +67,6 @@ tests:linux64:stable:
   script: 
     - cargo build --features strict
     - cargo test --all
-  cache:
-    paths:
-      - cargo/
-      - target/
 
 tests:armv7:stable:
   <<: *rust_stable_armv7
@@ -148,6 +144,10 @@ package:test:win64:
   stage: package
   script:
     - bash "release/arch/win64/build-win64.sh" "$(date +%Y%m%d).$(date +%H%M).$(date +%S)"
+  cache:
+    paths:
+      - cargo/
+      - target/
   artifacts:
     paths:
       - work/bin/
@@ -178,10 +178,6 @@ package:prod:linux64:
   stage: package
   script:
     - bash "release/arch/linux-x64/build-lin-x64.sh" "${CI_COMMIT_TAG#v}"
-  cache:
-    paths:
-      - cargo/
-      - target/
   artifacts:
     paths:
       - work/bin/