From 94de8568194f074c105bbe79aca671911b7d2143 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Fri, 15 Sep 2023 11:10:03 -0500 Subject: [PATCH] ci: add ccache for linux build Signed-off-by: Robert Nelson --- .gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ce3ddb8..b595e35 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,6 +13,7 @@ cache: paths: - mirror/x86_64-gcc-*-linux.tar.xz - deploy/*.tar.xz + - ccache.tar.gz build: tags: @@ -22,7 +23,13 @@ build: - ./01_git_sync.sh - ./02_build_hss.sh - ./03_build_u-boot.sh + - mkdir -p /root/.cache/ccache/ || true + - ccache -s + - tar -xf ccache.tar.gz -C / || true + - ccache -s - ./04_build_linux.sh + - ccache -s + - tar -cf ccache.tar.gz /root/.cache/ccache/ - ./05_generate_payload.bin.sh - ./06_generate_ubuntu_console_root.sh - ./07_create_sdcard_img.sh