Skip to content

Commit 2c1d4b0

Browse files
[Github] Install sccache from apt repo in CI container (#137491)
This patch installs sccache using apt-get in the CI container build process rather than manually downloading it from github releases. This makes things quite a bit simpler and means we are not manually handling things like hash/signature verification. This is only possible now that we are using ubuntu 24.04 by default.
1 parent e731342 commit 2c1d4b0

File tree

1 file changed

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

1 file changed

+2
-11
lines changed

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

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

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-
8071
ENV LLVM_SYSROOT=$LLVM_SYSROOT
8172
ENV PATH=${LLVM_SYSROOT}/bin:${PATH}
8273

0 commit comments

Comments
 (0)