diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 670f18e..02e4cf4 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -80,6 +80,18 @@ jobs: icd=$(ls /usr/share/vulkan/icd.d/lvp_icd*.json | head -n1) xvfb-run -a env VK_DRIVER_FILES="$icd" vulkaninfo --summary' + - name: Verify packaging tools + if: matrix.image == 'vulkan' || matrix.image == 'windows-gcc' || matrix.image == 'windows-clang' + shell: bash + run: | + set -euo pipefail + docker run --rm "${{ steps.image.outputs.ref }}" bash -lc ' + wixl --version + command -v msiinfo + if [ -x /usr/bin/rpm ]; then rpm --version; fi + if command -v dpkg-deb >/dev/null 2>&1; then dpkg-deb --version | head -n1; fi + if command -v meson >/dev/null 2>&1; then meson --version; fi' + - name: Push if: github.event_name != 'pull_request' && env.REGISTRY_TOKEN != '' shell: bash diff --git a/README.md b/README.md index 0d6c681..9a56cf6 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,18 @@ use is already installed in `linux-native` and `vulkan`: - Mesa with RADV (AMD hardware) and lavapipe (software Vulkan) - Wine in both Windows images for running Windows tests +### Packaging and validation tools + +`vulkan` additionally carries the tools needed to build and verify installers: + +- `msitools` (`wixl`, `msiinfo`) — compiles WiX sources into real MSIs +- `rpm-tools` (`rpm`) — validates generated RPM packages +- `dpkg` (`dpkg-deb`) — validates generated DEB packages +- `meson` — lets the Meson foreign-provider tests run instead of being skipped + +Both Windows images also carry `msitools`, so Windows-target MSIs can be built +in the same job that cross-compiles the binaries. + `windows-gcc` additionally carries the `mingw-w64-toolchain` group (`x86_64-w64-mingw32-gcc/g++`, binutils, CRT, winpthreads) and an initialised 64-bit Wine prefix. `windows-clang` carries the LLVM-MinGW toolchain (clang, diff --git a/images/vulkan/Dockerfile b/images/vulkan/Dockerfile index 71e27f3..546ac46 100644 --- a/images/vulkan/Dockerfile +++ b/images/vulkan/Dockerfile @@ -46,6 +46,13 @@ RUN pacman -S --noconfirm --needed \ nodejs npm \ && pacman -Scc --noconfirm +# Packaging and validation tools: wixl (msitools) compiles WiX sources into +# MSIs, rpm validates generated RPMs, dpkg validates generated DEBs, and meson +# lets the foreign-provider translation tests run instead of being skipped. +RUN pacman -S --noconfirm --needed \ + msitools rpm-tools dpkg meson \ + && pacman -Scc --noconfirm + RUN git config --system --add safe.directory '*' \ && useradd --create-home --shell /bin/bash builder \ && mkdir -p /var/cache/ccache \ diff --git a/images/windows-clang/Dockerfile b/images/windows-clang/Dockerfile index d3e1c3a..2479d6d 100644 --- a/images/windows-clang/Dockerfile +++ b/images/windows-clang/Dockerfile @@ -25,6 +25,7 @@ RUN apt-get update \ cmake ninja-build pkg-config git ca-certificates \ nodejs npm \ zip unzip jq curl \ + msitools \ && rm -rf /var/lib/apt/lists/* RUN apt-get update \ diff --git a/images/windows-gcc/Dockerfile b/images/windows-gcc/Dockerfile index 54c444c..11da7af 100644 --- a/images/windows-gcc/Dockerfile +++ b/images/windows-gcc/Dockerfile @@ -52,6 +52,11 @@ RUN pacman -S --noconfirm --needed \ nodejs npm \ && pacman -Scc --noconfirm +# wixl (msitools) compiles the WiX sources VBS generates into real MSIs. +RUN pacman -S --noconfirm --needed \ + msitools \ + && 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 '*' \