Skip to content

Commit 929b90b

Browse files
[Github] Add sccache to CI container (#122063)
This patch adds sccache to the CI container so that the llvm-project-tests workflow does not fail due to missing sccache.
1 parent 5fdcea2 commit 929b90b

File tree

1 file changed

+10
-0
lines changed
  • .github/workflows/containers/github-action-ci

1 file changed

+10
-0
lines changed

.github/workflows/containers/github-action-ci/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ RUN apt-get update && \
6767
file \
6868
tzdata
6969

70+
# Install sccache as it is needed by most of the project test workflows and
71+
# cannot be installed by the ccache action when executing as a non-root user.
72+
# TODO(boomanaiden154): This should be switched to being installed with apt
73+
# once we bump to Ubuntu 24.04.
74+
RUN curl -L 'https://github.com/mozilla/sccache/releases/download/v0.7.6/sccache-v0.7.6-x86_64-unknown-linux-musl.tar.gz' > /tmp/sccache.tar.gz && \
75+
echo "2902a5e44c3342132f07b62e70cca75d9b23252922faf3b924f449808cc1ae58 /tmp/sccache.tar.gz" | sha256sum -c && \
76+
tar xzf /tmp/sccache.tar.gz -O --wildcards '*/sccache' > '/usr/local/bin/sccache' && \
77+
rm /tmp/sccache.tar.gz && \
78+
chmod +x /usr/local/bin/sccache
79+
7080
ENV LLVM_SYSROOT=$LLVM_SYSROOT
7181
ENV PATH=${LLVM_SYSROOT}/bin:${PATH}
7282

0 commit comments

Comments
 (0)