[llvm] [Github] Add sccache to CI container (PR #122063)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 7 23:21:32 PST 2025
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/122063
This patch adds sccache to the CI container so that the llvm-project-tests workflow does not fail due to missing sccache.
>From af76abc9a40305cf1e3dbb66e5f35c58b4cd76f5 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Wed, 8 Jan 2025 07:20:32 +0000
Subject: [PATCH] [Github] Add sccache to CI container
This patch adds sccache to the CI container so that the llvm-project-tests
workflow does not fail due to missing sccache.
---
.github/workflows/containers/github-action-ci/Dockerfile | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/.github/workflows/containers/github-action-ci/Dockerfile b/.github/workflows/containers/github-action-ci/Dockerfile
index 58355d261c43c9..4ddab6a30d022a 100644
--- a/.github/workflows/containers/github-action-ci/Dockerfile
+++ b/.github/workflows/containers/github-action-ci/Dockerfile
@@ -66,6 +66,11 @@ RUN apt-get update && \
file \
tzdata
+# Install sccache as it is needed by most of the project test workflows and
+# cannot be installed by the ccache action when executing as a non-root user.
+RUN curl -L 'https://github.com/mozilla/sccache/releases/download/v0.7.6/sccache-v0.7.6-x86_64-unknown-linux-musl.tar.gz' | tar xzf - -O --wildcards '*/sccache' > '/usr/local/bin/sccache' && \
+ chmod +x /usr/local/bin/sccache
+
ENV LLVM_SYSROOT=$LLVM_SYSROOT
ENV PATH=${LLVM_SYSROOT}/bin:${PATH}
More information about the llvm-commits
mailing list