- ci/windows-ci.sh is the one definition of every Windows step (toolchain, clippy, build, tests and UI self-test under Wine, packaging, test bundle); verify, release and next only call it. - release.yml: a windows job builds, tests and packages alkane-toolkit-vX.Y.Z-windows-x86_64.zip; the release job waits for it and attaches the zip next to the Linux tarball. next.yml does the same for -rc candidates, verify.yml runs the Windows gates on PRs. - windows-native.yml (advisory, never gates a release) runs main's cross-built unit tests and UI self-test on real Windows 11 through the self-hosted VM runner (label alkane-windows). - CI image: ci/images/alkane-ci.Dockerfile layers mingw-w64, Wine with a ready prefix, the rustup target and a prebuilt wxMSW prefix on the previously verified image; ci/images/build-image.sh pushes it and pins the digest. wx prefix/cache scripts take a linux|windows argument. - CI checks the wx-rs patch queue; versioning treats the GUI build script, Windows resources and assets as release-relevant; the workflow contract test covers the Windows gates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
48 lines
2.5 KiB
Docker
48 lines
2.5 KiB
Docker
# syntax=docker/dockerfile:1
|
|
# Alkane Toolkit CI image (ci/runner-image.txt pins the pushed digest).
|
|
#
|
|
# Layered on the previously verified image, so every Linux job keeps exactly
|
|
# the toolchain it had (Rust 1.97.1, prebuilt wxGTK prefix, sccache,
|
|
# cargo-llvm-cov), and adds what the Windows jobs need:
|
|
# - mingw-w64 (posix threads) and the rustup target x86_64-pc-windows-gnu
|
|
# - a prebuilt static wxMSW 3.3.3 prefix, built from the vendored source by
|
|
# scripts/build-wx-windows.sh and stamped with the source digest the same
|
|
# way as the wxGTK prefix (ci/ensure-wx-prefix.sh rebuilds on a mismatch)
|
|
# - Wine with an initialised prefix, to run the Windows tests and self-test
|
|
#
|
|
# Build and push from the workstation with ci/images/build-image.sh.
|
|
ARG BASE=gitea.bluefla.re/blueflare/alkane-ci@sha256:9d2a992bbcb91014af3c85d2e1ec8c5990701cecf83fd06c8d46f9ef13dbd948
|
|
FROM ${BASE}
|
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends \
|
|
gcc-mingw-w64-x86-64-posix g++-mingw-w64-x86-64-posix \
|
|
binutils-mingw-w64-x86-64 mingw-w64-x86-64-dev \
|
|
wine wine64 xvfb xauth \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN rustup target add x86_64-pc-windows-gnu
|
|
|
|
# The build context is the repository root, filtered by
|
|
# alkane-ci.Dockerfile.dockerignore down to the wx source and its build script.
|
|
COPY thirdparty/wxwidgets /tmp/alkane/thirdparty/wxwidgets
|
|
COPY scripts/build-wx-windows.sh /tmp/alkane/scripts/build-wx-windows.sh
|
|
RUN HOME=/root WX_WINDOWS_PREFIX=/root/.cache/wx-3.3.3-mingw \
|
|
sh /tmp/alkane/scripts/build-wx-windows.sh \
|
|
&& awk '$1 == "sha256:" {print $2}' /tmp/alkane/thirdparty/wxwidgets/VERSION \
|
|
> /root/.cache/wx-3.3.3-mingw/.alkane-source-sha256 \
|
|
&& rm -rf /tmp/alkane
|
|
|
|
# A ready Wine prefix saves ~10 s per job (scripts/wine-run.sh reuses it).
|
|
RUN WINEPREFIX=/root/.cache/alkane-wine WINEDEBUG=-all \
|
|
WINEDLLOVERRIDES='winemenubuilder.exe=d;mscoree=d;mshtml=d' \
|
|
sh -c 'wineboot --init; wineboot --shutdown; wineserver -w' >/dev/null 2>&1; \
|
|
test -f /root/.cache/alkane-wine/system.reg
|
|
|
|
RUN test -s /root/.cache/wx-3.3.3-mingw/lib/libwx_mswu-3.3-x86_64-w64-mingw32.a \
|
|
&& test "$(/root/.cache/wx-3.3.3-mingw/bin/wx-config --version)" = 3.3.3 \
|
|
&& test -s /root/.cache/wx-3.3.3-linux/lib/libwx_gtk3u-3.3.a \
|
|
&& x86_64-w64-mingw32-g++-posix --version >/dev/null \
|
|
&& wine --version \
|
|
&& rustup target list --installed | grep -qx x86_64-pc-windows-gnu
|