From 47bcad4ab1b4c86df0f4fb3fce5dd147e517e31b Mon Sep 17 00:00:00 2001
From: Eidolon <furyhunter600@gmail.com>
Date: Thu, 16 May 2024 17:52:26 -0500
Subject: [PATCH] Put the apt-cache in build/

Like with ccache, we want to make sure the git checkout is considered
clean during build.
---
 .gitlab/ci/templates/srb2ci.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.gitlab/ci/templates/srb2ci.yml b/.gitlab/ci/templates/srb2ci.yml
index f705a52a97..3716d9df92 100644
--- a/.gitlab/ci/templates/srb2ci.yml
+++ b/.gitlab/ci/templates/srb2ci.yml
@@ -12,7 +12,7 @@
 
     - key: apt-$CI_JOB_IMAGE
       paths:
-        - apt-cache
+        - build/apt-cache
       unprotect: true
 
   before_script:
@@ -37,7 +37,7 @@
     - - |
           # apt_conf
           echo -e "\e[0Ksection_start:`date +%s`:apt_conf[collapsed=true]\r\e[0KSetting up APT conf"
-      - export APT_CACHE_DIR=`pwd`/apt-cache
+      - export APT_CACHE_DIR=$CI_PROJECT_DIR/build/apt-cache
       - mkdir --parents --verbose $APT_CACHE_DIR/partial/
       - touch /etc/apt/apt.conf.d/99build
       - |
-- 
GitLab