[llvm] [Github] Install sccache from apt repo (PR #226019)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 22:02:13 PDT 2026


https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/226019

Now that we are on ubuntu 26.04 we have sccache 0.13.0 which should be new enough that everything works.

>From 06eaeef8618e5803edbf7ada2a471d08073e490e Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Thu, 24 Sep 2026 05:01:17 +0000
Subject: [PATCH] [Github] Install sccache from apt repo

Now that we are on ubuntu 26.04 we have sccache 0.13.0 which should be
new enough that everything works.
---
 .../containers/github-action-ci/Dockerfile         | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

diff --git a/.github/workflows/containers/github-action-ci/Dockerfile b/.github/workflows/containers/github-action-ci/Dockerfile
index 679c2ea87100c..c1a9df6450df8 100644
--- a/.github/workflows/containers/github-action-ci/Dockerfile
+++ b/.github/workflows/containers/github-action-ci/Dockerfile
@@ -69,21 +69,11 @@ RUN apt-get update && \
     python3-pip \
     file \
     tzdata \
-    python-is-python3 && \
+    python-is-python3 \
+    sccache && \
     apt-get clean && \
     rm -rf /var/lib/apt/lists/*
 
-# We need sccache for caching. We cannot use the apt repository version because
-# it is too old and has bugs related to features we require (particularly GCS
-# caching), so we manually install it here.
-# TODO(boomanaiden154): We should return to installing this from the apt
-# repository once a version containing the necessary bug fixes is available.
-RUN curl -L "https://github.com/mozilla/sccache/releases/download/v0.10.0/sccache-v0.10.0-$(arch)-unknown-linux-musl.tar.gz" > /tmp/sccache.tar.gz && \
-    echo $( [ $(arch) = 'x86_64' ] && echo "1fbb35e135660d04a2d5e42b59c7874d39b3deb17de56330b25b713ec59f849b" || echo "d6a1ce4acd02b937cd61bc675a8be029a60f7bc167594c33d75732bbc0a07400")  /tmp/sccache.tar.gz | sha256sum -c && \
-    tar xzf /tmp/sccache.tar.gz -O --wildcards '*/sccache' > '/usr/local/bin/sccache' && \
-    rm /tmp/sccache.tar.gz && \
-    chmod +x /usr/local/bin/sccache
-
 ENV LLVM_SYSROOT=$LLVM_SYSROOT
 ENV PATH=${LLVM_SYSROOT}/bin:${PATH}
 ENV CC=clang



More information about the llvm-commits mailing list