[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 4/6] gitlab-ci: Add ccache in $PATH and display statistics
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v3 4/6] gitlab-ci: Add ccache in $PATH and display statistics |
Date: |
Wed, 19 May 2021 20:45:47 +0200 |
If a runner has ccache installed, use it and display statistics
at the end of the build.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
.gitlab-ci.d/buildtest-template.yml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/.gitlab-ci.d/buildtest-template.yml
b/.gitlab-ci.d/buildtest-template.yml
index f284d7a0eec..a625c697d3b 100644
--- a/.gitlab-ci.d/buildtest-template.yml
+++ b/.gitlab-ci.d/buildtest-template.yml
@@ -6,13 +6,18 @@
then
JOBS=$(sysctl -n hw.ncpu)
MAKE=gmake
+ PATH=/usr/local/libexec/ccache:$PATH
;
else
JOBS=$(expr $(nproc) + 1)
MAKE=make
+ PATH=/usr/lib/ccache:/usr/lib64/ccache:$PATH
;
fi
- echo "=== Using $JOBS simultaneous jobs ==="
+ - if command -v ccache > /dev/null ; then ccache --zero-stats ; fi
+ after_script:
+ - if command -v ccache > /dev/null ; then ccache --show-stats ; fi
.native_build_job_template:
stage: build
--
2.26.3
- Re: [PATCH v3 1/6] gitlab-ci: Extract &environment_variables template, (continued)
- [PATCH v3 2/6] gitlab-ci: Adapt JOBS variable for FreeBSD runners, Philippe Mathieu-Daudé, 2021/05/19
- [PATCH v3 3/6] gitlab-ci: Run GNU make via the $MAKE variable, Philippe Mathieu-Daudé, 2021/05/19
- [PATCH v3 4/6] gitlab-ci: Add ccache in $PATH and display statistics,
Philippe Mathieu-Daudé <=
- Re: [PATCH v3 4/6] gitlab-ci: Add ccache in $PATH and display statistics, Willian Rampazzo, 2021/05/19
- Re: [PATCH v3 4/6] gitlab-ci: Add ccache in $PATH and display statistics, Thomas Huth, 2021/05/20
- Re: [PATCH v3 4/6] gitlab-ci: Add ccache in $PATH and display statistics, Philippe Mathieu-Daudé, 2021/05/20
- Re: [PATCH v3 4/6] gitlab-ci: Add ccache in $PATH and display statistics, Thomas Huth, 2021/05/21
- Re: [PATCH v3 4/6] gitlab-ci: Add ccache in $PATH and display statistics, Daniel P . Berrangé, 2021/05/21
- Re: [PATCH v3 4/6] gitlab-ci: Add ccache in $PATH and display statistics, Thomas Huth, 2021/05/21
- Re: [PATCH v3 4/6] gitlab-ci: Add ccache in $PATH and display statistics, Daniel P . Berrangé, 2021/05/21
- Re: [PATCH v3 4/6] gitlab-ci: Add ccache in $PATH and display statistics, Philippe Mathieu-Daudé, 2021/05/21
- Re: [PATCH v3 4/6] gitlab-ci: Add ccache in $PATH and display statistics, Daniel P . Berrangé, 2021/05/21
- Re: [PATCH v3 4/6] gitlab-ci: Add ccache in $PATH and display statistics, Philippe Mathieu-Daudé, 2021/05/21