Skip to content

Commit f4e948b

Browse files
committed
ci: Add ccache 4.9.1
This commit adds the ccache v4.9.1, the latest version at the moment, to the CI Docker image because the distro ccache package is relatively outdated and does not support newer features used by the zephyr-runner v2 (mainly, redis remote storage backend). Note that the upstream ccache project does not distribute pre-compiled AArch64 binary -- for AArch64, the distro-provided ccache package will be used. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent 647b2c0 commit f4e948b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Dockerfile.ci

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ ARG ZSDK_VERSION=0.16.5-1
77
ENV ZSDK_VERSION=$ZSDK_VERSION
88
ARG KITWARE_NINJA_VERSION=1.11.1.g95dee.kitware.jobserver-1
99
ENV KITWARE_NINJA_VERSION=$KITWARE_NINJA_VERSION
10+
ARG CCACHE_VERSION=4.9.1
11+
ENV CCACHE_VERSION=$CCACHE_VERSION
1012
ARG DOXYGEN_VERSION=1.9.4
1113
ENV DOXYGEN_VERSION=$DOXYGEN_VERSION
1214
ARG RENODE_VERSION=1.14.0
@@ -38,6 +40,15 @@ RUN if [ "${HOSTTYPE}" = "x86_64" ]; then \
3840
rm ninja-${KITWARE_NINJA_VERSION}_x86_64-linux-gnu.tar.gz \
3941
; fi
4042

43+
# Install ccache
44+
# NOTE: Pre-built ccache binaries are only available for x86_64 host.
45+
RUN if [ "${HOSTTYPE}" = "x86_64" ]; then \
46+
wget ${WGET_ARGS} https://github.com/ccache/ccache/releases/download/v${CCACHE_VERSION}/ccache-${CCACHE_VERSION}-linux-x86_64.tar.xz && \
47+
tar xf ccache-${CCACHE_VERSION}-linux-x86_64.tar.xz -C /opt && \
48+
ln -s /opt/ccache-${CCACHE_VERSION}-linux-x86_64/ccache /usr/local/bin && \
49+
rm ccache-${CCACHE_VERSION}-linux-x86_64.tar.xz \
50+
; fi
51+
4152
# Install Doxygen (x86 only)
4253
# NOTE: Pre-built Doxygen binaries are only available for x86_64 host.
4354
RUN if [ "${HOSTTYPE}" = "x86_64" ]; then \

0 commit comments

Comments
 (0)