From cba2ce24833f97936467f0ad803c039eacaf17dc Mon Sep 17 00:00:00 2001 From: niansa Date: Sat, 9 Mar 2024 02:38:33 +0000 Subject: [PATCH 1/2] 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 9af9d8ed54..af3ed0c6d4 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:latest 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 From 20dcecdad6b10a2c66d1742c279213eb7ef446f7 Mon Sep 17 00:00:00 2001 From: niansa Date: Sat, 9 Mar 2024 02:41:56 +0000 Subject: [PATCH 2/2] Move cache usage declaration into build-linux --- .gitlab-ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index af3ed0c6d4..fdb6c4d17b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,16 +11,15 @@ 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:latest resource_group: linux-ci variables: RELEASE_NAME: mainline + cache: + paths: + - ccache/ before_script: - mkdir -p ccache - export CCACHE_BASEDIR=${PWD}