Skip to content

Commit dc9bd5b

Browse files
[CI][Github] Use newer sccache version in CI container
I was having trouble with the version that ships in the ubuntu apt repository and GCS based caching. The newer version works, so reintroduce the infra that we had in 2c1d4b0 to download it. Pull Request: llvm#149196
1 parent b79e8f8 commit dc9bd5b

File tree

1 file changed

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

1 file changed

+10
-2
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,19 @@ RUN apt-get update && \
6363
python3-pip \
6464
ccache \
6565
file \
66-
tzdata \
67-
sccache && \
66+
tzdata && \
6867
apt-get clean && \
6968
rm -rf /var/lib/apt/lists/*
7069

70+
# We need sccache for caching. We cannot use the apt repository version because
71+
# it is too old and has bugs related to features we require (particularly GCS
72+
# caching), so we manually install it here.
73+
RUN curl -L 'https://github.com/mozilla/sccache/releases/download/v0.10.0/sccache-v0.10.0-x86_64-unknown-linux-musl.tar.gz' > /tmp/sccache.tar.gz && \
74+
echo "1fbb35e135660d04a2d5e42b59c7874d39b3deb17de56330b25b713ec59f849b /tmp/sccache.tar.gz" | sha256sum -c && \
75+
tar xzf /tmp/sccache.tar.gz -O --wildcards '*/sccache' > '/usr/local/bin/sccache' && \
76+
rm /tmp/sccache.tar.gz && \
77+
chmod +x /usr/local/bin/sccache
78+
7179
ENV LLVM_SYSROOT=$LLVM_SYSROOT
7280
ENV PATH=${LLVM_SYSROOT}/bin:${PATH}
7381

0 commit comments

Comments
 (0)