Skip to content

Commit af76abc

Browse files
[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.
1 parent 61b806f commit af76abc

File tree

1 file changed

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

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ RUN apt-get update && \
6666
file \
6767
tzdata
6868

69+
# Install sccache as it is needed by most of the project test workflows and
70+
# cannot be installed by the ccache action when executing as a non-root user.
71+
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' && \
72+
chmod +x /usr/local/bin/sccache
73+
6974
ENV LLVM_SYSROOT=$LLVM_SYSROOT
7075
ENV PATH=${LLVM_SYSROOT}/bin:${PATH}
7176

0 commit comments

Comments
 (0)