From 8ef87aa23d2cb17b0f37fa20303860b37cf9e336 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Fri, 3 May 2024 13:45:27 +0200
Subject: [PATCH] [ci] Also install libegl1 via apt

---
 .gitlab-ci.yml | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2018d406..8058ef0d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,20 +13,28 @@ variables:
   GIT_SUBMODULE_DEPTH: 1
 
 .snippets:
-  apt-install-libgl:
+  apt-install-libs:
       # apt install libgl1-mesa-glx for grad-cam
       - |
         if [[ ${CI_RUNNER_TAGS} =~ '"docker"' ]]; then \
           apt update; \
-          apt install -y libgl1-mesa-glx > /dev/null; \
+          apt install -y libegl1 libgl1-mesa-glx > /dev/null; \
         fi
 
 tests:
   before_script:
     - !reference [.snippets, setup-pixi]
-    - !reference [.snippets, apt-install-libgl]
+    - !reference [.snippets, apt-install-libs]
+  cache:
+    key: test-cache-${TAG}-${PYTHON}
+    paths:
+      - _cache/torch
 
 documentation:
   before_script:
     - !reference [.snippets, setup-pixi]
-    - !reference [.snippets, apt-install-libgl]
+    - !reference [.snippets, apt-install-libs]
+  cache:
+    key: doc-cache
+    paths:
+      - _cache/torch
-- 
GitLab