Split image layers and serialize registry pushes
This commit is contained in:
1 parent
72bac2d644
commit
8096b3df11
5 files changed
+42
-20
No files matched your search
@@ -29,6 +29,9 @@ jobs:
|
|||||||
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN || secrets.RELEASE_BOT_TOKEN }}
|
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN || secrets.RELEASE_BOT_TOKEN }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
# One push at a time: the registry returned HTTP 500 when two multi-GB
|
||||||
|
# images uploaded concurrently.
|
||||||
|
max-parallel: 1
|
||||||
matrix:
|
matrix:
|
||||||
image:
|
image:
|
||||||
- vulkan
|
- vulkan
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ use is already installed:
|
|||||||
- Boost, OpenSSL, SQLite, libsodium, libarchive, FreeType, GLFW, GoogleTest
|
- Boost, OpenSSL, SQLite, libsodium, libarchive, FreeType, GLFW, GoogleTest
|
||||||
- Vulkan headers, loader, validation layers, tools, glslang, shaderc, Slang
|
- Vulkan headers, loader, validation layers, tools, glslang, shaderc, Slang
|
||||||
- Mesa with RADV (AMD hardware) and lavapipe (software Vulkan)
|
- Mesa with RADV (AMD hardware) and lavapipe (software Vulkan)
|
||||||
- Wine for running Windows tests
|
- Wine in both Windows images for running Windows tests
|
||||||
|
|
||||||
`windows-gcc` additionally carries the `mingw-w64-toolchain` group
|
`windows-gcc` additionally carries the `mingw-w64-toolchain` group
|
||||||
(`x86_64-w64-mingw32-gcc/g++`, binutils, CRT, winpthreads) and an initialised
|
(`x86_64-w64-mingw32-gcc/g++`, binutils, CRT, winpthreads) and an initialised
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
#
|
#
|
||||||
# Arch Linux is the base because it packages GCC 16 (C++26 reflection),
|
# 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.
|
# CMake 4, the Vulkan SDK pieces and every Void dependency in one repository.
|
||||||
|
# The install is split into several RUN layers so no single image layer gets
|
||||||
|
# large enough to upset the container registry.
|
||||||
FROM archlinux:base-devel
|
FROM archlinux:base-devel
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="Void CI Vulkan" \
|
LABEL org.opencontainers.image.title="Void CI Vulkan" \
|
||||||
@@ -17,19 +19,27 @@ LABEL org.opencontainers.image.title="Void CI Vulkan" \
|
|||||||
ENV LANG=C.UTF-8 \
|
ENV LANG=C.UTF-8 \
|
||||||
LC_ALL=C.UTF-8 \
|
LC_ALL=C.UTF-8 \
|
||||||
CMAKE_GENERATOR=Ninja \
|
CMAKE_GENERATOR=Ninja \
|
||||||
CCACHE_DIR=/var/cache/ccache \
|
CCACHE_DIR=/var/cache/ccache
|
||||||
WINEDEBUG=-all \
|
|
||||||
WINEDLLOVERRIDES=mscoree,mshtml=
|
|
||||||
|
|
||||||
RUN pacman -Syu --noconfirm --needed \
|
RUN pacman -Syu --noconfirm \
|
||||||
|
&& pacman -S --noconfirm --needed \
|
||||||
base-devel gcc cmake ninja git pkgconf python ccache \
|
base-devel gcc cmake ninja git pkgconf python ccache \
|
||||||
|
&& pacman -Scc --noconfirm
|
||||||
|
|
||||||
|
RUN pacman -S --noconfirm --needed \
|
||||||
vulkan-headers vulkan-icd-loader vulkan-validation-layers vulkan-tools \
|
vulkan-headers vulkan-icd-loader vulkan-validation-layers vulkan-tools \
|
||||||
mesa vulkan-radeon vulkan-swrast vulkan-mesa-layers \
|
mesa vulkan-radeon vulkan-swrast vulkan-mesa-layers \
|
||||||
glslang shaderc shader-slang \
|
glslang shaderc shader-slang \
|
||||||
|
&& pacman -Scc --noconfirm
|
||||||
|
|
||||||
|
RUN pacman -S --noconfirm --needed \
|
||||||
glfw gtest boost openssl sqlite libsodium libarchive freetype2 \
|
glfw gtest boost openssl sqlite libsodium libarchive freetype2 \
|
||||||
libx11 libxcb libxcursor libxrandr libxi libxinerama libxkbcommon \
|
libx11 libxcb libxcursor libxrandr libxi libxinerama libxkbcommon \
|
||||||
wayland wayland-protocols \
|
wayland wayland-protocols \
|
||||||
wine zip unzip jq curl ca-certificates xorg-server-xvfb \
|
&& pacman -Scc --noconfirm
|
||||||
|
|
||||||
|
RUN pacman -S --noconfirm --needed \
|
||||||
|
zip unzip jq curl ca-certificates xorg-server-xvfb \
|
||||||
&& pacman -Scc --noconfirm
|
&& pacman -Scc --noconfirm
|
||||||
|
|
||||||
RUN git config --system --add safe.directory '*' \
|
RUN git config --system --add safe.directory '*' \
|
||||||
@@ -40,7 +50,4 @@ RUN git config --system --add safe.directory '*' \
|
|||||||
USER builder
|
USER builder
|
||||||
WORKDIR /home/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"]
|
CMD ["/bin/bash"]
|
||||||
@@ -4,6 +4,8 @@
|
|||||||
# LLVM-MinGW toolchain in /opt/llvm-mingw (clang, lld, compiler-rt, libc++ and
|
# 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
|
# the mingw-w64 runtime, DEFAULT_CRT=ucrt). Arch's GCC image covers the GCC
|
||||||
# side; this one is the clang side.
|
# side; this one is the clang side.
|
||||||
|
#
|
||||||
|
# The install is split into two RUN layers to keep the registry blobs smaller.
|
||||||
FROM mstorsjo/llvm-mingw:latest
|
FROM mstorsjo/llvm-mingw:latest
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="Void CI Windows Clang" \
|
LABEL org.opencontainers.image.title="Void CI Windows Clang" \
|
||||||
@@ -21,9 +23,13 @@ ENV DEBIAN_FRONTEND=noninteractive \
|
|||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
cmake ninja-build pkg-config git ca-certificates \
|
cmake ninja-build pkg-config git ca-certificates \
|
||||||
|
zip unzip jq curl \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y --no-install-recommends \
|
||||||
libvulkan-dev vulkan-tools mesa-vulkan-drivers \
|
libvulkan-dev vulkan-tools mesa-vulkan-drivers \
|
||||||
wine xvfb \
|
wine xvfb \
|
||||||
zip unzip jq curl \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# The Vulkan headers are OS-independent; make them visible to LLVM-MinGW.
|
# The Vulkan headers are OS-independent; make them visible to LLVM-MinGW.
|
||||||
|
|||||||
@@ -11,6 +11,9 @@
|
|||||||
# Arch ships only the core MinGW toolchain. Extra Windows libraries belong to
|
# Arch ships only the core MinGW toolchain. Extra Windows libraries belong to
|
||||||
# the project (CMake FetchContent, vcpkg or conan); the Vulkan headers are
|
# the project (CMake FetchContent, vcpkg or conan); the Vulkan headers are
|
||||||
# copied into the MinGW sysroot because they are platform-independent.
|
# copied into the MinGW sysroot because they are platform-independent.
|
||||||
|
#
|
||||||
|
# The install is split into several RUN layers so no single image layer gets
|
||||||
|
# large enough to upset the container registry.
|
||||||
FROM archlinux:base-devel
|
FROM archlinux:base-devel
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="Void CI Windows GCC" \
|
LABEL org.opencontainers.image.title="Void CI Windows GCC" \
|
||||||
@@ -27,19 +30,22 @@ ENV LANG=C.UTF-8 \
|
|||||||
WINEDLLOVERRIDES=mscoree,mshtml= \
|
WINEDLLOVERRIDES=mscoree,mshtml= \
|
||||||
WINEPATH=Z:/usr/x86_64-w64-mingw32/bin
|
WINEPATH=Z:/usr/x86_64-w64-mingw32/bin
|
||||||
|
|
||||||
RUN pacman -Syu --noconfirm --needed \
|
RUN pacman -Syu --noconfirm \
|
||||||
|
&& pacman -S --noconfirm --needed \
|
||||||
base-devel gcc cmake ninja git pkgconf python zip unzip \
|
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
|
&& pacman -Scc --noconfirm
|
||||||
|
|
||||||
# Optional packages: not every one is in the Arch repositories.
|
RUN pacman -S --noconfirm --needed \
|
||||||
RUN for pkg in nsis wine-mono wine-gecko; do \
|
mingw-w64-toolchain \
|
||||||
pacman -S --noconfirm --needed "$pkg" || true; \
|
&& pacman -Scc --noconfirm
|
||||||
done \
|
|
||||||
|
RUN pacman -S --noconfirm --needed \
|
||||||
|
vulkan-headers vulkan-icd-loader vulkan-tools \
|
||||||
|
mesa vulkan-radeon vulkan-swrast \
|
||||||
|
&& pacman -Scc --noconfirm
|
||||||
|
|
||||||
|
RUN pacman -S --noconfirm --needed \
|
||||||
|
wine xorg-server-xvfb jq curl ca-certificates \
|
||||||
&& pacman -Scc --noconfirm
|
&& pacman -Scc --noconfirm
|
||||||
|
|
||||||
# The Vulkan headers are OS-independent; make them visible to the MinGW compiler.
|
# The Vulkan headers are OS-independent; make them visible to the MinGW compiler.
|
||||||
|
|||||||
Reference in new issue
Block a user