summaryrefslogtreecommitdiff
path: root/.github/images
diff options
context:
space:
mode:
authorhibby <d@vehibberd.com>2026-10-06 21:24:40 +0100
committerhibby <d@vehibberd.com>2026-10-06 21:24:40 +0100
commitc25cbdf6fb6d946175f4335fab77bfea601b56db (patch)
tree6f7a94b7b81f999e434f61b73d47e337dfd26bf2 /.github/images
parent71f5689252c9f13e70e1c24856904475b2307809 (diff)
parent0685fcada9f95fe90f70b387cd7d757da8209624 (diff)
Merge tag 'debian/3.2.0_rc1+dfsg-2' into debian/trixie-backportsdebian/trixie-backports
tagging wsjtx 3.2.0~rc1+dfsg-2
Diffstat (limited to '.github/images')
-rw-r--r--.github/images/linux-ci/Dockerfile.armhf-cross121
-rw-r--r--.github/images/linux-ci/Dockerfile.armhf-runtime48
-rw-r--r--.github/images/linux-ci/Dockerfile.bookworm51
-rw-r--r--.github/images/linux-ci/Dockerfile.noble89
-rw-r--r--.github/images/linux-ci/README.md110
-rw-r--r--.github/images/linux-ci/armhf-cross-toolchain.config30
-rwxr-xr-x.github/images/linux-ci/install-armhf-runtime-packages.sh21
-rwxr-xr-x.github/images/linux-ci/install-packages.sh63
-rwxr-xr-x.github/images/linux-ci/write-manifest.sh77
9 files changed, 610 insertions, 0 deletions
diff --git a/.github/images/linux-ci/Dockerfile.armhf-cross b/.github/images/linux-ci/Dockerfile.armhf-cross
new file mode 100644
index 00000000..f37d1928
--- /dev/null
+++ b/.github/images/linux-ci/Dockerfile.armhf-cross
@@ -0,0 +1,121 @@
+FROM debian:bookworm
+
+ARG IMAGE_REFRESH_EPOCH
+
+SHELL ["/bin/bash", "-o", "pipefail", "-c"]
+ENV DEBIAN_FRONTEND=noninteractive
+
+COPY .github/scripts/run-apt-get.sh /usr/local/bin/run-apt-get
+RUN chmod +x /usr/local/bin/run-apt-get \
+ && test -n "$IMAGE_REFRESH_EPOCH" \
+ && run-apt-get update \
+ && run-apt-get install -y --no-install-recommends \
+ asciidoctor autoconf automake binutils bison build-essential \
+ ca-certificates ccache cmake curl dpkg-dev file flex gawk git gperf \
+ help2man libncurses-dev libtool libtool-bin mmdebstrap patch pkg-config \
+ python3 python3-dev qt5-qmake-bin qtbase5-dev-tools qttools5-dev-tools \
+ qemu-user-static rsync texinfo unzip wget xz-utils \
+ && run-apt-get clean \
+ && rm -rf /var/lib/apt/lists/*
+
+COPY .github/scripts/linux-ci-image-config.sh \
+ .github/scripts/armhf-ci-image-config.sh \
+ /usr/local/share/wsjtx-ci/
+COPY .github/images/linux-ci/armhf-cross-toolchain.config \
+ /usr/local/share/wsjtx-ci/armhf-cross-toolchain.config
+
+RUN set -eux; \
+ . /usr/local/share/wsjtx-ci/armhf-ci-image-config.sh; \
+ curl --fail --show-error --silent --location --retry 5 \
+ -o /tmp/crosstool-ng.tar.xz "$ARMHF_CROSSTOOL_NG_URL"; \
+ echo "$ARMHF_CROSSTOOL_NG_SHA256 /tmp/crosstool-ng.tar.xz" | sha256sum -c -; \
+ mkdir /tmp/crosstool-ng; \
+ tar -xf /tmp/crosstool-ng.tar.xz -C /tmp/crosstool-ng --strip-components=1; \
+ cd /tmp/crosstool-ng; \
+ ./configure --prefix=/usr/local; \
+ make -j"$(nproc)"; \
+ make install; \
+ cd /; \
+ rm -rf /tmp/crosstool-ng /tmp/crosstool-ng.tar.xz; \
+ useradd --create-home --shell /bin/bash wsjtx; \
+ mkdir -p /tmp/wsjtx-ctng-build /var/cache/wsjtx-ctng /opt/wsjtx; \
+ chown -R wsjtx:wsjtx /tmp/wsjtx-ctng-build /var/cache/wsjtx-ctng /opt/wsjtx
+
+ARG IMAGE_RECIPE_SHA256
+USER wsjtx
+RUN --mount=type=cache,id=wsjtx-armhf-ctng-downloads,target=/var/cache/wsjtx-ctng,uid=1000,gid=1000 \
+ --mount=type=cache,id=wsjtx-armhf-ctng-build-${IMAGE_RECIPE_SHA256},target=/tmp/wsjtx-ctng-build,uid=1000,gid=1000 \
+ set -eux; \
+ cd /tmp/wsjtx-ctng-build; \
+ cp /usr/local/share/wsjtx-ci/armhf-cross-toolchain.config .config; \
+ ct-ng olddefconfig; \
+ # crosstool-NG prints only a summary on failure; expose the detailed compiler \
+ # tail so hosted image failures can be diagnosed without reproducing locally. \
+ if ! ct-ng build; then \
+ tail -n 300 build.log >&2; \
+ exit 1; \
+ fi
+
+USER root
+COPY .github/scripts/linux-ccache-compiler-signature.sh \
+ .github/scripts/build-hamlib-armhf-cross.sh \
+ .github/scripts/build-armhf-toolchain-smoke.sh \
+ .github/scripts/normalize-armhf-sysroot-symlinks.sh \
+ .github/scripts/write-armhf-ci-manifest.sh \
+ .github/scripts/verify-armhf-ci-image.sh \
+ /usr/local/share/wsjtx-ci/
+RUN set -eux; \
+ chmod +x /usr/local/share/wsjtx-ci/*.sh; \
+ . /usr/local/share/wsjtx-ci/armhf-ci-image-config.sh; \
+ test "$("$ARMHF_TOOLCHAIN_PREFIX/bin/$ARMHF_TARGET_TRIPLET-gcc" -dumpfullversion -dumpversion)" = "$ARMHF_GCC_VERSION"; \
+ test "$("$ARMHF_TOOLCHAIN_PREFIX/bin/$ARMHF_TARGET_TRIPLET-gcc" -dumpmachine)" = "$ARMHF_TARGET_TRIPLET"; \
+ package_csv="$(IFS=,; echo "${ARMHF_SYSROOT_PACKAGES[*]}")"; \
+ mmdebstrap --variant=extract --architectures=armhf \
+ --include="$package_csv" --skip=cleanup/apt/cache \
+ bookworm "$ARMHF_SYSROOT" http://deb.debian.org/debian; \
+ /usr/local/share/wsjtx-ci/normalize-armhf-sysroot-symlinks.sh \
+ "$ARMHF_SYSROOT"; \
+ mkdir -p /opt/wsjtx-ci; \
+ : > /opt/wsjtx-ci/armhf-sysroot-packages.unsorted; \
+ while IFS= read -r -d '' package; do \
+ dpkg-deb -f "$package" '${binary:Package}=${Version}\n' \
+ >> /opt/wsjtx-ci/armhf-sysroot-packages.unsorted; \
+ done < <(find "$ARMHF_SYSROOT/var/cache/apt/archives" -type f -name '*.deb' -print0); \
+ LC_ALL=C sort -u /opt/wsjtx-ci/armhf-sysroot-packages.unsorted \
+ > /opt/wsjtx-ci/armhf-sysroot-packages.txt; \
+ rm /opt/wsjtx-ci/armhf-sysroot-packages.unsorted; \
+ rm -rf "$ARMHF_SYSROOT/var/cache/apt/archives" \
+ "$ARMHF_SYSROOT/var/lib/apt/lists"; \
+ mkdir -p /tmp/wsjtx-hamlib-build; \
+ cd /tmp/wsjtx-hamlib-build; \
+ /usr/local/share/wsjtx-ci/build-hamlib-armhf-cross.sh \
+ "$LINUX_HAMLIB_COMMIT" "$ARMHF_SYSROOT" "$ARMHF_TOOLCHAIN_PREFIX"; \
+ mkdir -p "$ARMHF_RUNTIME_PREFIX"; \
+ for library in "${ARMHF_GCC_RUNTIME_LIBRARIES[@]}"; do \
+ source_path="$("$ARMHF_TOOLCHAIN_PREFIX/bin/$ARMHF_TARGET_TRIPLET-gcc" -print-file-name="$library")"; \
+ test "$source_path" != "$library"; \
+ cp -L "$source_path" "$ARMHF_RUNTIME_PREFIX/$library"; \
+ done; \
+ test "$("$ARMHF_TOOLCHAIN_PREFIX/bin/$ARMHF_TARGET_TRIPLET-gcc" -print-file-name=libquadmath.so.0)" = libquadmath.so.0; \
+ /usr/local/share/wsjtx-ci/build-armhf-toolchain-smoke.sh \
+ "$ARMHF_TOOLCHAIN_PREFIX" "$ARMHF_SYSROOT" /opt/wsjtx-ci/toolchain-smoke; \
+ rm -rf /tmp/wsjtx-hamlib-build /home/wsjtx
+
+ARG IMAGE_CREATED
+ARG IMAGE_GENERATION=local
+ARG IMAGE_REVISION
+LABEL org.opencontainers.image.created="${IMAGE_CREATED}" \
+ org.opencontainers.image.revision="${IMAGE_REVISION}" \
+ org.opencontainers.image.source="https://github.com/WSJTX/wsjtx-internal" \
+ org.opencontainers.image.title="WSJT-X ARMHF cross-builder" \
+ org.opencontainers.image.description="Native x86_64 GCC 13.4 cross-builder with a Debian Bookworm ARMHF sysroot"
+RUN set -eux; \
+ . /usr/local/share/wsjtx-ci/armhf-ci-image-config.sh; \
+ /usr/local/share/wsjtx-ci/write-armhf-ci-manifest.sh \
+ cross-builder armhf "$IMAGE_GENERATION" "$IMAGE_RECIPE_SHA256"; \
+ IMAGE_RECIPE_SHA256="$IMAGE_RECIPE_SHA256" \
+ /usr/local/share/wsjtx-ci/verify-armhf-ci-image.sh \
+ cross-builder armhf "$LINUX_HAMLIB_REF"
+
+ENV PATH="/opt/wsjtx/armhf-toolchain/bin:${PATH}"
+WORKDIR /work
diff --git a/.github/images/linux-ci/Dockerfile.armhf-runtime b/.github/images/linux-ci/Dockerfile.armhf-runtime
new file mode 100644
index 00000000..85404f0f
--- /dev/null
+++ b/.github/images/linux-ci/Dockerfile.armhf-runtime
@@ -0,0 +1,48 @@
+ARG CROSS_BUILDER_IMAGE=wsjtx-armhf-cross:missing-build-arg
+ARG CROSS_BUILDER_PLATFORM=linux/amd64
+FROM --platform=${CROSS_BUILDER_PLATFORM} ${CROSS_BUILDER_IMAGE} AS cross_builder
+
+FROM arm32v7/debian:bookworm
+
+ARG IMAGE_REFRESH_EPOCH
+
+ENV DEBIAN_FRONTEND=noninteractive
+
+COPY .github/scripts/run-apt-get.sh /usr/local/bin/run-apt-get
+COPY .github/images/linux-ci/install-armhf-runtime-packages.sh \
+ /usr/local/bin/install-armhf-runtime-packages
+RUN chmod +x /usr/local/bin/run-apt-get /usr/local/bin/install-armhf-runtime-packages \
+ && test -n "$IMAGE_REFRESH_EPOCH" \
+ && /usr/local/bin/install-armhf-runtime-packages
+
+COPY .github/scripts/linux-ci-image-config.sh \
+ .github/scripts/armhf-ci-image-config.sh \
+ .github/scripts/write-armhf-ci-manifest.sh \
+ .github/scripts/verify-armhf-ci-image.sh \
+ /usr/local/share/wsjtx-ci/
+COPY --from=cross_builder /opt/wsjtx/armhf-runtime /opt/wsjtx/armhf-runtime
+COPY --from=cross_builder /opt/wsjtx-ci/toolchain-smoke /opt/wsjtx-ci/toolchain-smoke
+COPY --from=cross_builder /opt/wsjtx-ci/image.env \
+ /usr/local/share/wsjtx-ci/cross-builder.env
+COPY --from=cross_builder /usr/bin/qemu-arm-static /usr/local/bin/qemu-arm-static
+
+ARG IMAGE_CREATED
+ARG IMAGE_GENERATION=local
+ARG IMAGE_REVISION
+ARG IMAGE_RECIPE_SHA256
+LABEL org.opencontainers.image.created="${IMAGE_CREATED}" \
+ org.opencontainers.image.revision="${IMAGE_REVISION}" \
+ org.opencontainers.image.source="https://github.com/WSJTX/wsjtx-internal" \
+ org.opencontainers.image.title="WSJT-X ARMHF runtime validator" \
+ org.opencontainers.image.description="Debian Bookworm ARMv7 packaging and runtime validation under QEMU"
+SHELL ["/bin/bash", "-o", "pipefail", "-c"]
+RUN set -eux; \
+ chmod +x /usr/local/share/wsjtx-ci/*.sh; \
+ . /usr/local/share/wsjtx-ci/armhf-ci-image-config.sh; \
+ /usr/local/share/wsjtx-ci/write-armhf-ci-manifest.sh \
+ runtime armhf "$IMAGE_GENERATION" "$IMAGE_RECIPE_SHA256"; \
+ IMAGE_RECIPE_SHA256="$IMAGE_RECIPE_SHA256" \
+ /usr/local/share/wsjtx-ci/verify-armhf-ci-image.sh \
+ runtime armhf "$LINUX_HAMLIB_REF"
+
+WORKDIR /work
diff --git a/.github/images/linux-ci/Dockerfile.bookworm b/.github/images/linux-ci/Dockerfile.bookworm
new file mode 100644
index 00000000..f919a032
--- /dev/null
+++ b/.github/images/linux-ci/Dockerfile.bookworm
@@ -0,0 +1,51 @@
+ARG BASE_IMAGE=gcc:13.4.0-bookworm
+FROM ${BASE_IMAGE}
+
+ARG IMAGE_ARCH
+ARG IMAGE_CREATED
+ARG IMAGE_GENERATION=local
+ARG IMAGE_REVISION
+ARG IMAGE_RECIPE_SHA256
+ARG IMAGE_REFRESH_EPOCH
+
+LABEL org.opencontainers.image.created="${IMAGE_CREATED}" \
+ org.opencontainers.image.revision="${IMAGE_REVISION}" \
+ org.opencontainers.image.source="https://github.com/WSJTX/wsjtx-internal" \
+ org.opencontainers.image.title="WSJT-X Bookworm Linux CI" \
+ org.opencontainers.image.description="GCC 13.4 Debian Bookworm environment for WSJT-X ARM CI"
+
+ENV DEBIAN_FRONTEND=noninteractive
+
+COPY .github/scripts/run-apt-get.sh /usr/local/bin/run-apt-get
+COPY .github/images/linux-ci/install-packages.sh /usr/local/bin/install-packages
+RUN chmod +x /usr/local/bin/run-apt-get /usr/local/bin/install-packages \
+ && test -n "$IMAGE_REFRESH_EPOCH" \
+ && /usr/local/bin/install-packages normal
+
+COPY .github/scripts/linux-ci-image-config.sh \
+ .github/scripts/build-pfunit-linux.sh \
+ .github/scripts/build-hamlib-linux.sh \
+ .github/scripts/linux-ccache-compiler-signature.sh \
+ .github/scripts/verify-linux-ci-image.sh \
+ /usr/local/share/wsjtx-ci/
+COPY .github/images/linux-ci/write-manifest.sh /usr/local/bin/write-wsjtx-ci-manifest
+
+RUN set -eux; \
+ test -n "$IMAGE_ARCH"; \
+ chmod +x /usr/local/bin/write-wsjtx-ci-manifest; \
+ . /usr/local/share/wsjtx-ci/linux-ci-image-config.sh; \
+ mkdir -p /tmp/wsjtx-pfunit-build; \
+ cd /tmp/wsjtx-pfunit-build; \
+ /usr/local/share/wsjtx-ci/build-pfunit-linux.sh \
+ "$LINUX_PFUNIT_COMMIT" "$LINUX_PFUNIT_PREFIX"; \
+ mkdir -p /tmp/wsjtx-hamlib-build; \
+ cd /tmp/wsjtx-hamlib-build; \
+ /usr/local/share/wsjtx-ci/build-hamlib-linux.sh \
+ "$LINUX_HAMLIB_COMMIT" "$LINUX_HAMLIB_PREFIX"; \
+ cd /; \
+ rm -rf /tmp/wsjtx-pfunit-build /tmp/wsjtx-hamlib-build; \
+ /usr/local/bin/write-wsjtx-ci-manifest \
+ normal "$IMAGE_ARCH" "$IMAGE_GENERATION" "$IMAGE_RECIPE_SHA256"; \
+ IMAGE_RECIPE_SHA256="$IMAGE_RECIPE_SHA256" \
+ /usr/local/share/wsjtx-ci/verify-linux-ci-image.sh \
+ normal "$IMAGE_ARCH" "$LINUX_HAMLIB_REF"
diff --git a/.github/images/linux-ci/Dockerfile.noble b/.github/images/linux-ci/Dockerfile.noble
new file mode 100644
index 00000000..b93abc37
--- /dev/null
+++ b/.github/images/linux-ci/Dockerfile.noble
@@ -0,0 +1,89 @@
+ARG BASE_IMAGE=ubuntu:24.04
+FROM ${BASE_IMAGE} AS common
+
+ARG IMAGE_CREATED
+ARG IMAGE_GENERATION=local
+ARG IMAGE_REVISION
+ARG IMAGE_RECIPE_SHA256
+
+LABEL org.opencontainers.image.created="${IMAGE_CREATED}" \
+ org.opencontainers.image.revision="${IMAGE_REVISION}" \
+ org.opencontainers.image.source="https://github.com/WSJTX/wsjtx-internal"
+
+ENV DEBIAN_FRONTEND=noninteractive
+
+COPY .github/scripts/run-apt-get.sh /usr/local/bin/run-apt-get
+COPY .github/images/linux-ci/install-packages.sh /usr/local/bin/install-packages
+RUN chmod +x /usr/local/bin/run-apt-get /usr/local/bin/install-packages
+
+FROM common AS normal
+
+ARG IMAGE_REFRESH_EPOCH
+
+LABEL org.opencontainers.image.title="WSJT-X Noble Linux CI" \
+ org.opencontainers.image.description="Ubuntu 24.04 build environment for WSJT-X normal and ASan/UBSan CI"
+
+RUN test -n "$IMAGE_REFRESH_EPOCH" && /usr/local/bin/install-packages normal
+
+COPY .github/scripts/linux-ci-image-config.sh \
+ .github/scripts/build-pfunit-linux.sh \
+ .github/scripts/build-hamlib-linux.sh \
+ .github/scripts/linux-ccache-compiler-signature.sh \
+ .github/scripts/verify-linux-ci-image.sh \
+ /usr/local/share/wsjtx-ci/
+COPY .github/images/linux-ci/write-manifest.sh /usr/local/bin/write-wsjtx-ci-manifest
+
+RUN set -eux; \
+ chmod +x /usr/local/bin/write-wsjtx-ci-manifest; \
+ . /usr/local/share/wsjtx-ci/linux-ci-image-config.sh; \
+ mkdir -p /tmp/wsjtx-pfunit-build; \
+ cd /tmp/wsjtx-pfunit-build; \
+ /usr/local/share/wsjtx-ci/build-pfunit-linux.sh \
+ "$LINUX_PFUNIT_COMMIT" "$LINUX_PFUNIT_PREFIX"; \
+ mkdir -p /tmp/wsjtx-hamlib-build; \
+ cd /tmp/wsjtx-hamlib-build; \
+ /usr/local/share/wsjtx-ci/build-hamlib-linux.sh \
+ "$LINUX_HAMLIB_COMMIT" "$LINUX_HAMLIB_PREFIX"; \
+ cd /; \
+ rm -rf /tmp/wsjtx-pfunit-build /tmp/wsjtx-hamlib-build; \
+ /usr/local/bin/write-wsjtx-ci-manifest \
+ normal x86_64 "$IMAGE_GENERATION" "$IMAGE_RECIPE_SHA256"; \
+ IMAGE_RECIPE_SHA256="$IMAGE_RECIPE_SHA256" \
+ /usr/local/share/wsjtx-ci/verify-linux-ci-image.sh \
+ normal x86_64 "$LINUX_HAMLIB_REF"
+
+FROM common AS tsan
+
+SHELL ["/bin/bash", "-o", "pipefail", "-c"]
+
+ARG IMAGE_GENERATION=local
+ARG IMAGE_RECIPE_SHA256
+ARG IMAGE_REFRESH_EPOCH
+
+LABEL org.opencontainers.image.title="WSJT-X Noble TSan CI" \
+ org.opencontainers.image.description="Ubuntu 24.04 environment with TSan-instrumented WSJT-X dependencies"
+
+RUN test -n "$IMAGE_REFRESH_EPOCH" && /usr/local/bin/install-packages tsan
+
+COPY .github/scripts/linux-ci-image-config.sh \
+ .github/scripts/tsan-linux-deps-config.sh \
+ .github/scripts/build-qt-tsan-linux.sh \
+ .github/scripts/build-boost-tsan-linux.sh \
+ .github/scripts/build-hamlib-tsan-linux.sh \
+ .github/scripts/linux-ccache-compiler-signature.sh \
+ .github/scripts/verify-tsan-deps-linux.sh \
+ .github/scripts/verify-linux-ci-image.sh \
+ /usr/local/share/wsjtx-ci/
+COPY .github/images/linux-ci/write-manifest.sh /usr/local/bin/write-wsjtx-ci-manifest
+
+RUN set -eux; \
+ chmod +x /usr/local/bin/write-wsjtx-ci-manifest; \
+ . /usr/local/share/wsjtx-ci/tsan-linux-deps-config.sh; \
+ /usr/local/share/wsjtx-ci/build-qt-tsan-linux.sh /opt/wsjtx/tsan/qt; \
+ /usr/local/share/wsjtx-ci/build-boost-tsan-linux.sh /opt/wsjtx/tsan/boost; \
+ /usr/local/share/wsjtx-ci/build-hamlib-tsan-linux.sh /opt/wsjtx/tsan/hamlib; \
+ /usr/local/bin/write-wsjtx-ci-manifest \
+ tsan x86_64 "$IMAGE_GENERATION" "$IMAGE_RECIPE_SHA256"; \
+ IMAGE_RECIPE_SHA256="$IMAGE_RECIPE_SHA256" \
+ /usr/local/share/wsjtx-ci/verify-linux-ci-image.sh \
+ tsan x86_64 "$TSAN_HAMLIB_REF"
diff --git a/.github/images/linux-ci/README.md b/.github/images/linux-ci/README.md
new file mode 100644
index 00000000..5c3cd01a
--- /dev/null
+++ b/.github/images/linux-ci/README.md
@@ -0,0 +1,110 @@
+# Linux CI images
+
+WSJT-X publishes five private, single-platform build environments to GHCR:
+
+| Package | Platform | CI consumers |
+| --- | --- | --- |
+| `wsjtx-internal/linux-noble` | `linux/amd64` | Normal and ASan/UBSan |
+| `wsjtx-internal/linux-tsan-noble` | `linux/amd64` | TSan |
+| `wsjtx-internal/linux-arm64-bookworm` | `linux/arm64` | aarch64 |
+| `wsjtx-internal/linux-armhf-cross-bookworm` | `linux/amd64` | Native armhf cross-build |
+| `wsjtx-internal/linux-armv7-bookworm` | `linux/arm/v7` | armhf tests and packaging under QEMU |
+
+The normal images contain the compiler, development and packaging closure, and
+the slow-moving pFUnit and Hamlib prefixes. The TSan image instead contains the
+pinned, instrumented Qt, Boost, and Hamlib tuple. The armhf cross-builder pairs
+a native x86-64 GCC 13.4 cross-toolchain with a Debian Bookworm armhf sysroot;
+its runtime partner contains only the target execution and packaging closure.
+WSJT-X objects and binaries are never baked into these images.
+
+The Ubuntu and GCC base tags intentionally follow their maintained upstream
+security updates. Each published generation records the resolved package set,
+compiler identity, dependency pins, and recipe fingerprint. Normal-image
+promotion is gated by image construction, the image-level checks, and a full
+WSJT-X build using the exact immutable candidate. That build also publishes the
+candidate generation's ccache snapshot before `stable` moves. TSan publication
+is an explicit image cohort and verifies its pinned closure during the image
+build; the current code-level TSan suite is not part of image promotion.
+
+## Publication
+
+`publish-linux-ci-images.yml` pushes unique candidate and immutable `build-*`
+tags for the selected image cohort. Each Docker build verifies the image
+manifest, dependency metadata, and a representative compile/link smoke test.
+Before a normal candidate is promoted, the standard x64 WSJT-X build and test
+pipeline runs against its exact `build-*` tag and saves a generation-specific
+ccache archive. This prevents a new image from becoming stable without a cache
+that pull requests can restore. Successful generations also receive
+`validated-build-*` tags. The secondary normal-image `stable` tags move first
+and `linux-noble:stable` moves last within that cohort. Consumers resolve that
+pointer to its immutable `build-*` tag and use the same generation for every
+normal Linux leg.
+
+The armhf image pair is published explicitly with `include_armhf: true`. It is
+excluded from routine weekly/monthly refreshes because toolchain construction
+is expensive. The pair is built, promoted, and rolled back as one generation.
+Opt-in full-ci, release, and standalone armhf builds resolve the last promoted
+runtime generation once and require the matching cross-builder tag; a missing
+member fails explicitly. Manual full-ci can instead name an immutable candidate
+generation for pre-promotion acceptance testing.
+
+The TSan workflow resolves `linux-tsan-noble:stable` independently when its
+optional label is used. A missing TSan generation fails explicitly instead of
+silently using the normal image. A TSan-only publication builds, promotes, or
+rolls back only that package; it does not rebuild or retag normal or ARM images.
+
+Ordinary non-TSan PR and `develop` jobs may overlap a dependency refresh. They
+pin the image generation resolved at job start and allow a recipe-fingerprint
+mismatch with a warning, so the last known-good stable generation remains a
+usable fallback while the refresh completes. Image publication, release, and
+TSan jobs keep strict fingerprint checks; if no promoted generation exists, the
+resolver still fails explicitly.
+
+The dependency refresh workflow runs image publication monthly and when image
+recipes change on `develop`. Changed paths are classified from the same profile
+membership used to calculate the recipe fingerprints, so normal-only and
+TSan-only inputs refresh only their affected cohort while shared inputs refresh
+both. The monthly refresh includes TSan; weekly and `all` refreshes omit it.
+The `linux-tsan` manual target selects only TSan, while `linux` and
+`linux-images` select normal and ARM64 without armhf. Use the direct publisher
+workflow when explicit armhf validation is needed. A monthly epoch invalidates the
+package-install layer so repository security updates are not hidden by
+BuildKit's cache. The direct publisher workflow also supports
+retagging a retained `validated-build-*` generation as `stable` for rollback.
+Promotion and rollback are restricted to `develop`; non-promoting candidate
+builds may be run from another ref.
+
+## ccache compatibility
+
+The image recipe and ccache compatibility identities intentionally answer
+different questions. The recipe and legacy `toolchain_id` describe the complete
+image for verification and provenance. Actions-cache keys instead use the
+architecture, sanitizer profile when applicable, a `gcc<major>-v2`
+compatibility ID, and the immutable image generation.
+
+Within that archive, ccache uses a verified content signature covering the C
+and C++ drivers, GCC frontends and LTO executable, assembler, their resolved
+runtime-library closure, the target, and GCC specs. Compiler changes therefore
+miss safely inside the compatible archive.
+Source, flags, generated sources, and included header contents retain ccache's
+normal per-object invalidation. Changes to unrelated image packages do not
+discard otherwise compatible objects.
+
+A new generation first restores its own snapshot and then falls back to any
+compatible older generation. The candidate build recompiles only genuine
+misses and saves an augmented generation-specific snapshot before promotion.
+Recipe-stale fallback builds may restore caches but are not allowed to save
+them.
+
+## Retention
+
+The weekly retention job keeps `stable`, preserves unrecognized and untagged
+versions, retains at least the newest three recognized package versions, and
+deletes only recognized build, validated-build, and candidate versions older
+than 60 days. Manual retention runs are dry-run only; scheduled runs apply the
+printed plan.
+
+The Buildx jobs deliberately disable provenance and SBOM attachment. Even a
+single-platform attestation is represented through an image index with
+untagged child manifests, which cannot be safely classified from GitHub's
+package-version REST response alone.
diff --git a/.github/images/linux-ci/armhf-cross-toolchain.config b/.github/images/linux-ci/armhf-cross-toolchain.config
new file mode 100644
index 00000000..e318e28a
--- /dev/null
+++ b/.github/images/linux-ci/armhf-cross-toolchain.config
@@ -0,0 +1,30 @@
+CT_CONFIG_VERSION="4"
+CT_LOCAL_TARBALLS_DIR="/var/cache/wsjtx-ctng"
+CT_PREFIX_DIR="/opt/wsjtx/armhf-toolchain"
+# CT_LOG_PROGRESS_BAR is not set
+# CT_LOG_FILE_COMPRESS is not set
+# Hosted x86_64 runners have 8 GiB; serializing the final GCC runtime-library
+# build prevents libstdc++ and libgfortran from exhausting memory together.
+CT_PARALLEL_JOBS=1
+# CI does not ship toolchain debug symbols, and omitting them further bounds the
+# memory and image size of the slow, immutable toolchain-generation step.
+CT_TARGET_CFLAGS="-g0"
+CT_ARCH_ARM=y
+CT_ARCH_ARM_MODE_THUMB=y
+CT_OMIT_TARGET_VENDOR=y
+CT_ARCH_ARCH="armv7-a+fp"
+CT_ARCH_FLOAT_HW=y
+CT_KERNEL_LINUX=y
+CT_LINUX_V_6_1=y
+CT_BINUTILS_V_2_40=y
+CT_BINUTILS_LINKER_LD_GOLD=y
+CT_BINUTILS_GOLD_THREADS=y
+CT_BINUTILS_LD_WRAPPER=y
+CT_BINUTILS_PLUGINS=y
+CT_GLIBC_V_2_36=y
+CT_GLIBC_KERNEL_VERSION_CHOSEN=y
+CT_GLIBC_MIN_KERNEL_VERSION="3.2.0"
+CT_GCC_V_13=y
+CT_CC_GCC_LIBGOMP=y
+CT_CC_LANG_CXX=y
+CT_CC_LANG_FORTRAN=y
diff --git a/.github/images/linux-ci/install-armhf-runtime-packages.sh b/.github/images/linux-ci/install-armhf-runtime-packages.sh
new file mode 100755
index 00000000..a7a18e2e
--- /dev/null
+++ b/.github/images/linux-ci/install-armhf-runtime-packages.sh
@@ -0,0 +1,21 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+packages=(
+ ca-certificates curl file git python3 xz-utils
+ binutils cmake dpkg-dev rpm
+ libatomic1 libstdc++6 libgfortran5 libgomp1
+ libfftw3-single3
+ libboost-atomic1.74.0 libboost-chrono1.74.0 libboost-filesystem1.74.0
+ libboost-log1.74.0 libboost-regex1.74.0 libboost-thread1.74.0
+ libqt5widgets5 libqt5network5 libqt5multimedia5 libqt5printsupport5 libqt5test5
+ libqt5multimedia5-plugins libqt5serialport5 libqt5sql5-sqlite
+ libqt5websockets5 qt5-qmake-bin qtbase5-dev-tools
+ libusb-1.0-0 libudev1 libportaudio2
+ xauth xvfb
+)
+
+/usr/local/bin/run-apt-get update
+/usr/local/bin/run-apt-get install -y --no-install-recommends "${packages[@]}"
+/usr/local/bin/run-apt-get clean
+rm -rf /var/lib/apt/lists/*
diff --git a/.github/images/linux-ci/install-packages.sh b/.github/images/linux-ci/install-packages.sh
new file mode 100755
index 00000000..ed10940b
--- /dev/null
+++ b/.github/images/linux-ci/install-packages.sh
@@ -0,0 +1,63 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+if [ "$#" -ne 1 ]; then
+ echo "Usage: install-packages.sh normal|tsan" >&2
+ exit 2
+fi
+
+normal_packages=(
+ ca-certificates curl git
+ build-essential cmake ccache
+ libfftw3-dev libboost-log-dev
+ qtbase5-dev qttools5-dev qtmultimedia5-dev libqt5serialport5-dev
+ libqt5sql5-sqlite libqt5websockets5-dev
+ libqt5multimedia5-plugins
+ libusb-1.0-0-dev libudev-dev
+ autoconf automake libtool pkg-config
+ texinfo
+ dpkg-dev
+ asciidoctor
+ rpm
+ python3
+ file xz-utils xauth xvfb
+ portaudio19-dev
+)
+
+tsan_packages=(
+ ca-certificates curl git xz-utils bzip2 perl python3
+ build-essential binutils cmake ccache file make pkg-config xauth xvfb
+ gcc-13 g++-13 gfortran-13
+ autoconf automake libtool texinfo
+ libfftw3-dev libreadline-dev libusb-1.0-0-dev portaudio19-dev
+ libasound2-dev libcups2-dev libdbus-1-dev libegl1-mesa-dev
+ libfontconfig1-dev libfreetype-dev libgl1-mesa-dev
+ libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
+ libpulse-dev libssl-dev libudev-dev
+ libx11-dev libx11-xcb-dev libxcb1-dev libxcb-glx0-dev
+ libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev
+ libxcb-randr0-dev libxcb-render-util0-dev libxcb-shape0-dev
+ libxcb-shm0-dev libxcb-sync-dev libxcb-xfixes0-dev
+ libxcb-xinerama0-dev libxcb-xkb-dev
+ libxext-dev libxfixes-dev libxi-dev libxrender-dev
+ libxkbcommon-dev libxkbcommon-x11-dev
+)
+
+case "$1" in
+ normal)
+ packages=("${normal_packages[@]}")
+ if ! command -v gfortran >/dev/null 2>&1; then
+ packages+=(gfortran)
+ fi
+ ;;
+ tsan) packages=("${tsan_packages[@]}") ;;
+ *)
+ echo "Unsupported Linux CI image package profile: $1" >&2
+ exit 2
+ ;;
+esac
+
+/usr/local/bin/run-apt-get update
+/usr/local/bin/run-apt-get install -y --no-install-recommends "${packages[@]}"
+/usr/local/bin/run-apt-get clean
+rm -rf /var/lib/apt/lists/*
diff --git a/.github/images/linux-ci/write-manifest.sh b/.github/images/linux-ci/write-manifest.sh
new file mode 100755
index 00000000..7a28887b
--- /dev/null
+++ b/.github/images/linux-ci/write-manifest.sh
@@ -0,0 +1,77 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+if [ "$#" -ne 4 ]; then
+ echo "Usage: write-manifest.sh FLAVOR ARCH GENERATION RECIPE_SHA256" >&2
+ exit 2
+fi
+
+flavor=$1
+arch=$2
+generation=$3
+recipe_sha256=$4
+
+# shellcheck source=.github/scripts/linux-ci-image-config.sh
+. /usr/local/share/wsjtx-ci/linux-ci-image-config.sh
+compiler_signature_helper=/usr/local/share/wsjtx-ci/linux-ccache-compiler-signature.sh
+
+case "$flavor" in
+ normal)
+ compiler=gcc
+ ;;
+ tsan)
+ # shellcheck source=.github/scripts/tsan-linux-deps-config.sh
+ . /usr/local/share/wsjtx-ci/tsan-linux-deps-config.sh
+ compiler=gcc-13
+ ;;
+ *)
+ echo "Unsupported Linux CI image flavor: $flavor" >&2
+ exit 2
+ ;;
+esac
+
+IFS=$'\t' read -r compiler_version compiler_target compiler_sha256 \
+ ccache_compatibility_id compiler_signature_sha256 \
+ < <("$compiler_signature_helper" "$compiler")
+dpkg_arch="$(dpkg --print-architecture)"
+case "$arch:$dpkg_arch" in
+ x86_64:amd64|aarch64:arm64|armhf:armhf) ;;
+ *)
+ echo "Image architecture mismatch: requested $arch, dpkg reports $dpkg_arch" >&2
+ exit 1
+ ;;
+esac
+package_sha256="$(dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort | sha256sum | awk '{print $1}')"
+identity="$recipe_sha256:$compiler_target:$compiler_sha256:$package_sha256"
+toolchain_sha256="$(printf '%s' "$identity" | sha256sum | awk '{print $1}')"
+toolchain_id="gcc${compiler_version}-${arch}-${toolchain_sha256:0:20}"
+
+mkdir -p /opt/wsjtx-ci
+{
+ printf 'schema=%s\n' "$LINUX_CI_IMAGE_SCHEMA"
+ printf 'flavor=%s\n' "$flavor"
+ printf 'architecture=%s\n' "$arch"
+ printf 'generation=%s\n' "$generation"
+ printf 'compiler=%s\n' "$compiler"
+ printf 'compiler_version=%s\n' "$compiler_version"
+ printf 'compiler_sha256=%s\n' "$compiler_sha256"
+ printf 'compiler_target=%s\n' "$compiler_target"
+ printf 'dpkg_arch=%s\n' "$dpkg_arch"
+ printf 'package_sha256=%s\n' "$package_sha256"
+ printf 'recipe_sha256=%s\n' "$recipe_sha256"
+ printf 'toolchain_id=%s\n' "$toolchain_id"
+ printf 'ccache_compatibility_id=%s\n' "$ccache_compatibility_id"
+ printf 'compiler_signature_sha256=%s\n' "$compiler_signature_sha256"
+ if [ "$flavor" = normal ]; then
+ printf 'hamlib_ref=%s\n' "$LINUX_HAMLIB_REF"
+ printf 'hamlib_commit=%s\n' "$LINUX_HAMLIB_COMMIT"
+ printf 'pfunit_version=%s\n' "$LINUX_PFUNIT_VERSION"
+ printf 'pfunit_commit=%s\n' "$LINUX_PFUNIT_COMMIT"
+ else
+ printf 'hamlib_ref=%s\n' "$TSAN_HAMLIB_REF"
+ printf 'hamlib_commit=%s\n' "$TSAN_HAMLIB_COMMIT"
+ printf 'hamlib_patch_commit=%s\n' "$TSAN_HAMLIB_PATCH_COMMIT"
+ printf 'qt_version=%s\n' "$TSAN_QT_VERSION"
+ printf 'boost_version=%s\n' "$TSAN_BOOST_VERSION"
+ fi
+} > /opt/wsjtx-ci/image.env