From 0ca3f539045b1ec67b94fd12e3ba9deec7da841d Mon Sep 17 00:00:00 2001
From: niansa <anton-sa@web.de>
Date: Sat, 9 Mar 2024 02:38:33 +0000
Subject: [PATCH] Update CI file to use ccache

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7b15c5baa1..048afc17c3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,12 +11,20 @@ clang-format:
     - git submodule update --init --depth 1 --recursive
     - bash .ci/scripts/format/script.sh
 
+cache:
+  paths:
+    - ccache/
+
 build-linux:
   stage: build
   image: suyuemu/cibuild:linux-x64
   resource_group: linux-ci
   variables:
     RELEASE_NAME: mainline
+  before_script:
+    - mkdir -p ccache
+    - export CCACHE_BASEDIR=${PWD}
+    - export CCACHE_DIR=${PWD}/ccache
   script:
     - git submodule update --init --depth 1 --recursive
     - bash .ci/scripts/linux/docker.sh
-- 
GitLab