|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] CI: Add and use ccache in build-each-commit job
commit ca04a92ec1ba98e99babf4135c3a865da6b5a5f6
Author: Anthony PERARD <anthony.perard@xxxxxxxxxx>
AuthorDate: Thu Jul 24 10:37:20 2025 +0200
Commit: Anthony PERARD <anthony.perard@xxxxxxxxxx>
CommitDate: Fri Aug 1 13:47:18 2025 +0200
CI: Add and use ccache in build-each-commit job
Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Acked-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
---
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} \
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |