qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 4/6] gitlab-ci: Add ccache in $PATH and display statistics


From: Thomas Huth
Subject: Re: [PATCH v3 4/6] gitlab-ci: Add ccache in $PATH and display statistics
Date: Thu, 20 May 2021 10:02:10 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0

On 19/05/2021 20.45, Philippe Mathieu-Daudé wrote:
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

That does not make sense for the shared runners yet. We first need something to enable the caching there - see my series "Use ccache in the gitlab-CI" from April (which is currently stalled unfortunately).

 Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]