All of lore.kernel.org
 help / color / mirror / Atom feed
* [XEN PATCH] CI: Add and use ccache in build-each-commit job
@ 2025-07-24  8:37 Anthony PERARD
  2025-07-24  8:50 ` Andrew Cooper
  0 siblings, 1 reply; 3+ messages in thread
From: Anthony PERARD @ 2025-07-24  8:37 UTC (permalink / raw)
  To: xen-devel
  Cc: Andrew Cooper, Anthony PERARD, Doug Goldstein, Stefano Stabellini

From: Anthony PERARD <anthony.perard@vates.tech>

Signed-off-by: Anthony PERARD <anthony.perard@vates.tech>
---

Notes:
    The job build-each-commit is a bit faster, and can do about twice as
    much builds.
    
        https://gitlab.com/xen-project/people/anthonyper/xen/-/jobs/10785719529
    
    I haven't updated the container yet.

 automation/build/debian/12-x86_64.dockerfile | 3 +++
 automation/gitlab-ci/build-each-commit.sh    | 5 +++++
 2 files changed, 8 insertions(+)

diff --git a/automation/build/debian/12-x86_64.dockerfile b/automation/build/debian/12-x86_64.dockerfile
index 6e0a403f64..e26a19079e 100644
--- a/automation/build/debian/12-x86_64.dockerfile
+++ b/automation/build/debian/12-x86_64.dockerfile
@@ -54,6 +54,9 @@ RUN <<EOF
         expect
         qemu-system-x86
 
+        # for build-each-commit-gcc
+        ccache
+
         # for qemu-alpine-x86_64-gcc
         busybox-static
         cpio
diff --git a/automation/gitlab-ci/build-each-commit.sh b/automation/gitlab-ci/build-each-commit.sh
index 08fddecbbe..166392fffd 100755
--- a/automation/gitlab-ci/build-each-commit.sh
+++ b/automation/gitlab-ci/build-each-commit.sh
@@ -12,6 +12,11 @@ if [[ $? -ne 0 ]]; then
     exit 0
 fi
 
+if [ -d /usr/lib/ccache ]; then
+    echo "Building with ccache"
+    PATH="/usr/lib/ccache:$PATH"
+fi
+
 echo "Building ${BASE}..${TIP}"
 
 NON_SYMBOLIC_REF=1 ./automation/scripts/build-test.sh ${BASE} ${TIP} \
-- 
Anthony PERARD



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [XEN PATCH] CI: Add and use ccache in build-each-commit job
  2025-07-24  8:37 [XEN PATCH] CI: Add and use ccache in build-each-commit job Anthony PERARD
@ 2025-07-24  8:50 ` Andrew Cooper
  2025-07-24 17:37   ` Stefano Stabellini
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cooper @ 2025-07-24  8:50 UTC (permalink / raw)
  To: Anthony PERARD, xen-devel
  Cc: Anthony PERARD, Doug Goldstein, Stefano Stabellini

On 24/07/2025 9:37 am, Anthony PERARD wrote:
> From: Anthony PERARD <anthony.perard@vates.tech>
>
> Signed-off-by: Anthony PERARD <anthony.perard@vates.tech>
> ---
>
> Notes:
>     The job build-each-commit is a bit faster, and can do about twice as
>     much builds.
>     
>         https://gitlab.com/xen-project/people/anthonyper/xen/-/jobs/10785719529
>     
>     I haven't updated the container yet.

Very nice.

Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>

That's rather more simple to integrate than I was expecting.

~Andrew


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [XEN PATCH] CI: Add and use ccache in build-each-commit job
  2025-07-24  8:50 ` Andrew Cooper
@ 2025-07-24 17:37   ` Stefano Stabellini
  0 siblings, 0 replies; 3+ messages in thread
From: Stefano Stabellini @ 2025-07-24 17:37 UTC (permalink / raw)
  To: Andrew Cooper
  Cc: Anthony PERARD, xen-devel, Anthony PERARD, Doug Goldstein,
	Stefano Stabellini

On Thu, 24 Jul 2025, Andrew Cooper wrote:
> On 24/07/2025 9:37 am, Anthony PERARD wrote:
> > From: Anthony PERARD <anthony.perard@vates.tech>
> >
> > Signed-off-by: Anthony PERARD <anthony.perard@vates.tech>
> > ---
> >
> > Notes:
> >     The job build-each-commit is a bit faster, and can do about twice as
> >     much builds.
> >     
> >         https://gitlab.com/xen-project/people/anthonyper/xen/-/jobs/10785719529
> >     
> >     I haven't updated the container yet.
> 
> Very nice.
> 
> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
> 
> That's rather more simple to integrate than I was expecting.

Acked-by: Stefano Stabellini <sstabellini@kernel.org>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-07-24 17:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-24  8:37 [XEN PATCH] CI: Add and use ccache in build-each-commit job Anthony PERARD
2025-07-24  8:50 ` Andrew Cooper
2025-07-24 17:37   ` Stefano Stabellini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.