From d320ad2edd422fb1717d4ae513adb939d51c0860 Mon Sep 17 00:00:00 2001
From: Christian Dreher <c.dreher@kit.edu>
Date: Tue, 24 Jan 2023 10:21:03 +0100
Subject: [PATCH] chore: try pip cache

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fda977343..79d760ffa 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,15 +7,22 @@ stages:
 
 .bootstrap-axii:
   cache:
-    key: general-apt-cache
-    paths:
-      - .apt
+    - key: general-pip-cache
+      paths:
+        - .pip
+    - key: general-apt-cache
+      paths:
+        - .apt
 
   before_script:
     - export LC_ALL=C.UTF-8
     - export LANG=C.UTF-8
     - source /etc/os-release
 
+    # Pip cache configuration.
+    - export PIP_CACHE_DIR="$CI_PROJECT_DIR/.pip"
+    - mkdir -p ".pip" || true
+
     # Apt cache configuration.
     - rm -rf /var/cache/apt/archives || true
     - rm -f /etc/apt/apt.conf.d/docker-clean  # Remove docker-clean script to avoid cache deletion.
-- 
GitLab