strawberry/packaging/ci/Dockerfile.matrix
trvon 1470894c7f
ci: local compiler matrix (trixie/noble/forky x gcc/clang)
make docker-compiler-matrix builds and tests the working tree in throwaway
containers per distro and compiler, ninja -k 0 so every compile error shows.
Minutes per leg locally vs ~3 h for a ci/** run. The apt list moves to
packaging/ci/build-deps.txt, read by build-release.sh and Dockerfile.matrix.
noble's clang leg uses clang-19 + llvm-19: clang 18 cannot use libstdc++ 13's
std::expected.
2026-11-20 10:32:11 -07:00

17 lines
737 B
Text

# Build image for scripts/compiler_matrix.sh: one distro, both compilers (gcc and clang).
# docker build -f packaging/ci/Dockerfile.matrix --build-arg BASE=debian:forky packaging/ci
ARG BASE=debian:trixie
FROM ${BASE}
# Extra apt packages for this distro's clang leg (noble: clang-19 llvm-19; its default clang 18 cannot
# use libstdc++ 13's std::expected, which needs __cpp_concepts >= 202002).
ARG EXTRA_PKGS=
ENV DEBIAN_FRONTEND=noninteractive
COPY build-deps.txt /tmp/build-deps.txt
RUN apt-get update -q \
&& grep -vE '^\s*(#|$)' /tmp/build-deps.txt | xargs apt-get install -y -q --no-install-recommends $EXTRA_PKGS \
&& rm -rf /var/lib/apt/lists/*
ENV PATH="/usr/lib/ccache:${PATH}" \
CCACHE_DIR=/ccache
WORKDIR /w