RemoveGCCCoverage (#3)
Reviewed-on: #3 Co-authored-by: Romain BOULLARD <romain.boullard@protonmail.com> Co-committed-by: Romain BOULLARD <romain.boullard@protonmail.com>
This commit was merged in pull request #3.
This commit is contained in:
@@ -4,8 +4,6 @@ ARG BASE_BUILDER
|
||||
# Base image
|
||||
FROM $BASE_BUILDER
|
||||
|
||||
ARG CONAN_PROFILE_BRANCH
|
||||
|
||||
# Environment variables for ccache and pipx
|
||||
ENV CCACHE_DIR=/ccache \
|
||||
CCACHE_COMPRESS=1 \
|
||||
@@ -16,6 +14,7 @@ ENV CCACHE_DIR=/ccache \
|
||||
# Install system dependencies, clang, and pipx
|
||||
RUN apt-get update && apt-get install -y \
|
||||
build-essential \
|
||||
cppcheck \
|
||||
ccache \
|
||||
cmake \
|
||||
ninja-build \
|
||||
@@ -31,7 +30,6 @@ RUN apt-get update && apt-get install -y \
|
||||
&& wget https://apt.llvm.org/llvm.sh -O /tmp/llvm.sh \
|
||||
&& chmod +x /tmp/llvm.sh \
|
||||
&& /tmp/llvm.sh 18 all \
|
||||
&& apt-get install -y clang-tools-18 \
|
||||
\
|
||||
# Symlinks for clang 18 tools
|
||||
&& ln -sf /usr/bin/clang-18 /usr/bin/clang \
|
||||
@@ -40,6 +38,7 @@ RUN apt-get update && apt-get install -y \
|
||||
&& ln -sf /usr/bin/llvm-cov-18 /usr/bin/llvm-cov \
|
||||
&& ln -sf /usr/bin/clang-format-18 /usr/bin/clang-format \
|
||||
&& ln -sf /usr/bin/clang-tidy-18 /usr/bin/clang-tidy \
|
||||
&& ln -sf /usr/bin/run-clang-tidy-18 /usr/bin/run-clang-tidy \
|
||||
&& ln -sf /usr/bin/llvm-ar-18 /usr/bin/llvm-ar \
|
||||
&& ln -sf /usr/bin/llvm-nm-18 /usr/bin/llvm-nm \
|
||||
&& ln -sf /usr/bin/llvm-ranlib-18 /usr/bin/llvm-ranlib \
|
||||
@@ -47,6 +46,11 @@ RUN apt-get update && apt-get install -y \
|
||||
# Reset ccache stats
|
||||
&& ccache --zero-stats
|
||||
|
||||
RUN VERSION=1.2.0; \
|
||||
curl -sSL "https://github.com/facebook/infer/releases/download/v$VERSION/infer-linux-x86_64-v$VERSION.tar.xz" \
|
||||
| sudo tar -C /opt -xJ && \
|
||||
sudo ln -s "/opt/infer-linux64-v$VERSION/bin/infer" /usr/local/bin/infer
|
||||
|
||||
# Install pipx and Conan
|
||||
RUN pipx ensurepath \
|
||||
&& pipx install conan
|
||||
@@ -65,7 +69,7 @@ RUN git clone --branch v2.40.4 https://github.com/rui314/mold.git /tmp/mold \
|
||||
&& rm -rf /tmp/mold
|
||||
|
||||
# Configure Conan with custom profiles and remote
|
||||
RUN conan config install https://git.romainboullard.com/BigfootDev/ConanProfiles.git --args="--branch $CONAN_PROFILE_BRANCH" \
|
||||
RUN conan config install https://git.romainboullard.com/BigfootDev/ConanProfiles.git --args="--branch main" \
|
||||
&& conan remote add bigfootpackages https://conan.romainboullard.com/artifactory/api/conan/BigfootPackages \
|
||||
&& conan remote disable conancenter
|
||||
|
||||
|
||||
Reference in New Issue
Block a user