Add MinGW/UCRT, LLVM-MinGW and Vulkan CI images
Build CI images / build (windows-clang) (push) Failing after 4s
Build CI images / build (windows-gcc) (push) Failing after 4s
Build CI images / build (vulkan) (push) Failing after 4s

This commit is contained in:
SubQ committed 2026-12-06 07:19:02 +03:00
commit 5dcc5f3fa0
5 files changed
+282

No files matched your search

+46
View File
@@ -0,0 +1,46 @@
# Portable Vulkan test image for the Void research projects.
#
# Hardware GPU: pass the host render node through the runner
# container.options = "--device=/dev/dri"
# and Mesa's RADV driver (vulkan-radeon) uses it. Without a GPU, Mesa's
# lavapipe software driver (vulkan-swrast) still runs the tests:
# VK_DRIVER_FILES=/usr/share/vulkan/icd.d/lvp_icd.json
#
# Arch Linux is the base because it packages GCC 16 (C++26 reflection),
# CMake 4, the Vulkan SDK pieces and every Void dependency in one repository.
FROM archlinux:base-devel
LABEL org.opencontainers.image.title="Void CI Vulkan" \
org.opencontainers.image.description="GCC 16, CMake 4, Vulkan SDK + Mesa (RADV/lavapipe) and the Void C++ dependencies" \
org.opencontainers.image.source="https://git.faumaray.com/Void/CI-Images"
ENV LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
CMAKE_GENERATOR=Ninja \
CCACHE_DIR=/var/cache/ccache \
WINEDEBUG=-all \
WINEDLLOVERRIDES=mscoree,mshtml=
RUN pacman -Syu --noconfirm --needed \
base-devel gcc cmake ninja git pkgconf python ccache \
vulkan-headers vulkan-icd-loader vulkan-validation-layers vulkan-tools \
mesa vulkan-radeon vulkan-swrast vulkan-mesa-layers \
glslang shaderc shader-slang \
glfw gtest boost openssl sqlite libsodium libarchive freetype2 \
libx11 libxcb libxcursor libxrandr libxi libxinerama libxkbcommon \
wayland wayland-protocols \
wine zip unzip jq curl ca-certificates xorg-server-xvfb \
&& pacman -Scc --noconfirm
RUN git config --system --add safe.directory '*' \
&& useradd --create-home --shell /bin/bash builder \
&& mkdir -p /var/cache/ccache \
&& chown builder:builder /var/cache/ccache
USER builder
WORKDIR /home/builder
# Warm a 64-bit Wine prefix so Windows cross tests do not initialise it per job.
RUN wineboot --init >/dev/null 2>&1 || true; wineserver -w || true
CMD ["/bin/bash"]
+37
View File
@@ -0,0 +1,37 @@
# LLVM-MinGW clang for Windows x86_64 (UCRT), plus CMake, Ninja and Wine.
#
# The upstream mstorsjo/llvm-mingw image is Ubuntu 24.04 with a complete
# LLVM-MinGW toolchain in /opt/llvm-mingw (clang, lld, compiler-rt, libc++ and
# the mingw-w64 runtime, DEFAULT_CRT=ucrt). Arch's GCC image covers the GCC
# side; this one is the clang side.
FROM mstorsjo/llvm-mingw:latest
LABEL org.opencontainers.image.title="Void CI Windows Clang" \
org.opencontainers.image.description="LLVM-MinGW clang cross toolchain, CMake, Ninja and Wine" \
org.opencontainers.image.source="https://git.faumaray.com/Void/CI-Images"
ENV DEBIAN_FRONTEND=noninteractive \
CMAKE_GENERATOR=Ninja \
WINEPREFIX=/root/.wine \
WINEARCH=win64 \
WINEDEBUG=-all \
WINEDLLOVERRIDES=mscoree,mshtml= \
WINEPATH=Z:/opt/llvm-mingw/x86_64-w64-mingw32/bin
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
cmake ninja-build pkg-config git ca-certificates \
libvulkan-dev vulkan-tools mesa-vulkan-drivers \
wine xvfb \
zip unzip jq curl \
&& rm -rf /var/lib/apt/lists/*
# The Vulkan headers are OS-independent; make them visible to LLVM-MinGW.
RUN mkdir -p /opt/llvm-mingw/x86_64-w64-mingw32/include \
&& cp -a /usr/include/vulkan /opt/llvm-mingw/x86_64-w64-mingw32/include/ \
&& git config --system --add safe.directory '*'
# Initialise the Wine prefix once, at build time, not in every job.
RUN wineboot --init >/dev/null 2>&1 || true; wineserver -w || true
CMD ["/bin/bash"]
+56
View File
@@ -0,0 +1,56 @@
# MinGW-w64 GCC for Windows x86_64 (UCRT) on Arch Linux, plus Wine.
#
# mingw-w64 14 made UCRT the default (mingw-w64-crt/configure.ac:
# --with-default-msvcrt defaults to ucrt), so x86_64-w64-mingw32-g++ here
# produces UCRT binaries. Arch packages mingw-w64-gcc 16.2, the same GCC major
# the Void projects use natively.
#
# Wine runs the resulting tests. Vulkan under Wine maps to the host Vulkan
# driver, so the Mesa/RADV/lavapipe packages are installed too.
#
# Arch ships only the core MinGW toolchain. Extra Windows libraries belong to
# the project (CMake FetchContent, vcpkg or conan); the Vulkan headers are
# copied into the MinGW sysroot because they are platform-independent.
FROM archlinux:base-devel
LABEL org.opencontainers.image.title="Void CI Windows GCC" \
org.opencontainers.image.description="MinGW-w64 GCC 16 (UCRT) cross toolchain, CMake, Ninja and Wine" \
org.opencontainers.image.source="https://git.faumaray.com/Void/CI-Images"
ENV LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
CMAKE_GENERATOR=Ninja \
MINGW_TRIPLET=x86_64-w64-mingw32 \
WINEPREFIX=/home/builder/.wine \
WINEARCH=win64 \
WINEDEBUG=-all \
WINEDLLOVERRIDES=mscoree,mshtml= \
WINEPATH=Z:/usr/x86_64-w64-mingw32/bin
RUN pacman -Syu --noconfirm --needed \
base-devel gcc cmake ninja git pkgconf python zip unzip \
mingw-w64-toolchain \
vulkan-headers vulkan-icd-loader vulkan-tools \
mesa vulkan-radeon vulkan-swrast \
wine xorg-server-xvfb \
jq curl ca-certificates \
&& pacman -Scc --noconfirm
# Optional packages: not every one is in the Arch repositories.
RUN for pkg in nsis wine-mono wine-gecko; do \
pacman -S --noconfirm --needed "$pkg" || true; \
done \
&& pacman -Scc --noconfirm
# The Vulkan headers are OS-independent; make them visible to the MinGW compiler.
RUN cp -a /usr/include/vulkan /usr/x86_64-w64-mingw32/include/ \
&& git config --system --add safe.directory '*' \
&& useradd --create-home --shell /bin/bash builder
USER builder
WORKDIR /home/builder
# Initialise the Wine prefix once, at build time, not in every job.
RUN wineboot --init >/dev/null 2>&1 || true; wineserver -w || true
CMD ["/bin/bash"]