From 2fae2b54db1f203a7b5d538372924491fdb98798 Mon Sep 17 00:00:00 2001
From: Logan Arias <logan.gba@gmail.com>
Date: Wed, 11 Oct 2023 01:39:08 +0000
Subject: [PATCH] Update .gitlab-ci.yml file fix ccache path part two

---
 .gitlab-ci.yml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d2c27a221..7ee079494 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -27,7 +27,8 @@ build-job:       # This job runs in the build stage, which runs first.
   image: debian
   variables:
     CCMaxSize: "10M"
-    CCC: "ccache gcc"
+    CC: "ccache gcc"
+    CCACHE_DIR: "$CI_BUILDS_DIR/.cache/ccache"
   cache:
     - key:
         files:
@@ -39,10 +40,13 @@ build-job:       # This job runs in the build stage, which runs first.
       - "bin/*"
 
   script:
+    - "export $CC"
+    - "export $CCACHE_DIR"
+    - "export $CI_BUILDS_DIR"
     - "apt update"
     - "apt-get install --no-install-recommends --yes build-essential libsdl2-mixer-dev libpng-dev libcurl4-openssl-dev libgme-dev git libopenmpt-dev gettext ccache"
     - "ccache --max-size $CCMaxSize"
-    - "CC=\"$CCC\" make --directory=src"
+    - "make --directory=src"
     - "ccache --show-stats"
     - "echo Are we running on DO? $DigitalOceanDebianMirror"
 
-- 
GitLab