Skip to content

Commit

Permalink
Install clang-tidy-cache (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickKa authored Jun 24, 2023
2 parents 5398b81 + edf0aef commit 643c16a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions linux-x86/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ubuntu:22.10

ENV HOME /
ENV HOME="/"

RUN apt-get update -qq && apt-get install -y -qq \
ca-certificates \
Expand Down Expand Up @@ -30,7 +30,7 @@ RUN update-alternatives --install /usr/bin/clangd clangd /usr/bin/clangd-15 15
RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12

#Install CMake 3.22
# Install CMake 3.22
RUN wget https://github.com/Kitware/CMake/releases/download/v3.22.0/cmake-3.22.0-linux-x86_64.tar.gz -q
RUN sudo tar xz -f /cmake-3.22.0-linux-x86_64.tar.gz -C /opt
# Setting PATH for both normal and sudo users
Expand All @@ -39,6 +39,12 @@ RUN echo "Defaults secure_path=\"/opt/cmake-3.22.0-linux-x86_64/bin:/usr/
RUN cmake --version
RUN sudo cmake --version

# Install clang-tidy-cache
ENV CTCACHE_DIR="/.cache/clang-tidy"
RUN mkdir -p ${CTCACHE_DIR}

RUN wget https://raw.githubusercontent.com/matus-chochlik/ctcache/main/clang-tidy-cache -O /usr/local/bin/clang-tidy-cache && chmod +x /usr/local/bin/clang-tidy-cache

# Check for possible mismatch between g++ and gcov versions
RUN GCC_VERSION=$(g++ -dumpfullversion) \
&& GCOV_VERSION=$( gcov --version | head -n 1 | grep -oP "\b\d{1,2}\.\d{1,2}\.\d{1,2}\b" | head -n 1) \
Expand Down

0 comments on commit 643c16a

Please sign in to comment.