Compare commits
12 Commits
main
...
Developmen
| Author | SHA1 | Date | |
|---|---|---|---|
| ea82b8bd75 | |||
| 8dafcdae98 | |||
| 4a4e103714 | |||
| e93ea347a5 | |||
| a81698a196 | |||
| c7a7148582 | |||
| 5169d111d6 | |||
| 974101c5a2 | |||
| b6049da822 | |||
| c0719d61cc | |||
| 00608711ae | |||
| 1200a1377f |
@@ -27,7 +27,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
docker build -t ${{ env.BASE_BUILDER_TAG }}:${{ env.BRANCH_NAME_LOWER }} ./Linux/BaseBuilder
|
docker build -t ${{ env.BASE_BUILDER_TAG }}:${{ env.BRANCH_NAME_LOWER }} --no-cache ./Linux/BaseBuilder
|
||||||
|
|
||||||
- name: Login to registry
|
- name: Login to registry
|
||||||
run: |
|
run: |
|
||||||
@@ -54,7 +54,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
docker build -t ${{ env.CPP_BUILDER_TAG }}:${{ env.BRANCH_NAME_LOWER }} --build-arg BASE_BUILDER=${{ env.BASE_BUILDER_TAG }}:${{ env.BRANCH_NAME_LOWER }} ./Linux/CPPBuilder
|
docker build -t ${{ env.CPP_BUILDER_TAG }}:${{ env.BRANCH_NAME_LOWER }} --build-arg BASE_BUILDER=${{ env.BASE_BUILDER_TAG }}:${{ env.BRANCH_NAME_LOWER }} --no-cache ./Linux/CPPBuilder
|
||||||
|
|
||||||
- name: Login to registry
|
- name: Login to registry
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -5,20 +5,12 @@ ENV TZ=Europe/Paris \
|
|||||||
DEBIAN_FRONTEND=noninteractive \
|
DEBIAN_FRONTEND=noninteractive \
|
||||||
PATH="/root/.local/bin:$PATH"
|
PATH="/root/.local/bin:$PATH"
|
||||||
|
|
||||||
# Use build cache for ccache
|
|
||||||
RUN --mount=type=cache,target=/ccache
|
|
||||||
|
|
||||||
# Dummy sudo (no security weakening)
|
|
||||||
RUN echo '#!/bin/bash\n$@' > /usr/bin/sudo \
|
RUN echo '#!/bin/bash\n$@' > /usr/bin/sudo \
|
||||||
&& chmod +x /usr/bin/sudo
|
&& chmod +x /usr/bin/sudo
|
||||||
|
|
||||||
# Install base dependencies in one layer
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
unzip \
|
unzip \
|
||||||
curl \
|
curl \
|
||||||
wget \
|
wget \
|
||||||
lsb-release \
|
|
||||||
software-properties-common \
|
|
||||||
gnupg \
|
|
||||||
python3 \
|
python3 \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
pipx
|
||||||
|
|||||||
@@ -1,42 +1,28 @@
|
|||||||
# Build arguments
|
|
||||||
ARG BASE_BUILDER
|
ARG BASE_BUILDER
|
||||||
|
|
||||||
# Base image
|
|
||||||
FROM $BASE_BUILDER
|
FROM $BASE_BUILDER
|
||||||
|
|
||||||
# Install system dependencies
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
build-essential \
|
build-essential \
|
||||||
cppcheck \
|
|
||||||
ccache \
|
ccache \
|
||||||
cmake \
|
|
||||||
ninja-build \
|
|
||||||
git \
|
git \
|
||||||
pkg-config \
|
|
||||||
wget \
|
|
||||||
lsb-release \
|
lsb-release \
|
||||||
|
pkg-config \
|
||||||
software-properties-common \
|
software-properties-common \
|
||||||
pipx \
|
xvfb
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
ENV PATH="/root/.local/bin:${PATH}"
|
ENV PATH="/root/.local/bin:${PATH}"
|
||||||
|
|
||||||
# Install LLVM 20 and symlink tools
|
# Install LLVM 22 and symlink tools
|
||||||
RUN wget https://apt.llvm.org/llvm.sh -O /tmp/llvm.sh \
|
RUN wget https://apt.llvm.org/llvm.sh -O /tmp/llvm.sh \
|
||||||
&& chmod +x /tmp/llvm.sh \
|
&& chmod +x /tmp/llvm.sh \
|
||||||
&& /tmp/llvm.sh 20 all \
|
&& /tmp/llvm.sh 22 all \
|
||||||
&& ln -sf /usr/bin/clang-20 /usr/bin/clang \
|
&& for f in /usr/lib/llvm-22/bin/*; do \
|
||||||
&& ln -sf /usr/bin/clang++-20 /usr/bin/clang++ \
|
ln -sf "$f" "/usr/local/bin/$(basename "$f")"; \
|
||||||
&& ln -sf /usr/bin/llvm-profdata-20 /usr/bin/llvm-profdata \
|
done \
|
||||||
&& ln -sf /usr/bin/llvm-cov-20 /usr/bin/llvm-cov \
|
&& rm -f /tmp/llvm.sh*
|
||||||
&& ln -sf /usr/bin/clang-format-20 /usr/bin/clang-format \
|
|
||||||
&& ln -sf /usr/bin/clang-tidy-20 /usr/bin/clang-tidy \
|
|
||||||
&& ln -sf /usr/bin/run-clang-tidy-20 /usr/bin/run-clang-tidy \
|
|
||||||
&& ln -sf /usr/bin/llvm-ar-20 /usr/bin/llvm-ar \
|
|
||||||
&& ln -sf /usr/bin/llvm-nm-20 /usr/bin/llvm-nm \
|
|
||||||
&& ln -sf /usr/bin/llvm-ranlib-20 /usr/bin/llvm-ranlib \
|
|
||||||
&& rm -f /tmp/llvm.sh
|
|
||||||
|
|
||||||
|
# Install Infer
|
||||||
RUN VERSION=1.2.0; \
|
RUN VERSION=1.2.0; \
|
||||||
curl -sSL "https://github.com/facebook/infer/releases/download/v$VERSION/infer-linux-x86_64-v$VERSION.tar.xz" \
|
curl -sSL "https://github.com/facebook/infer/releases/download/v$VERSION/infer-linux-x86_64-v$VERSION.tar.xz" \
|
||||||
| tar -C /opt -xJ && \
|
| tar -C /opt -xJ && \
|
||||||
@@ -46,16 +32,6 @@ RUN VERSION=1.2.0; \
|
|||||||
RUN pipx install conan \
|
RUN pipx install conan \
|
||||||
&& pipx install gcovr
|
&& pipx install gcovr
|
||||||
|
|
||||||
# Build and install mold
|
|
||||||
RUN git clone --branch v2.40.4 https://github.com/rui314/mold.git /tmp/mold \
|
|
||||||
&& cd /tmp/mold \
|
|
||||||
&& cmake . -DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DCMAKE_CXX_COMPILER=clang++ \
|
|
||||||
-B build \
|
|
||||||
&& cmake --build build -j$(nproc) \
|
|
||||||
&& cmake --install build \
|
|
||||||
&& rm -rf /tmp/mold
|
|
||||||
|
|
||||||
# Configure Conan with custom profiles and remote
|
# Configure Conan with custom profiles and remote
|
||||||
RUN conan config install https://git.romainboullard.com/BigfootDev/ConanProfiles.git --args="--branch main" \
|
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 add bigfootpackages https://conan.romainboullard.com/artifactory/api/conan/BigfootPackages \
|
||||||
|
|||||||
Reference in New Issue
Block a user