- 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>
41 lines
1.3 KiB
Bash
41 lines
1.3 KiB
Bash
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: MIT
|
|
# Key a wxWidgets prefix to its tracked source and build toolchain.
|
|
# wx-cache-key.sh [linux|windows]
|
|
set -euo pipefail
|
|
|
|
platform="${1:-linux}"
|
|
if [ "$platform" = windows ]; then
|
|
material="$({
|
|
git rev-parse HEAD:thirdparty/wxwidgets/wxWidgets-3.3.3
|
|
git rev-parse HEAD:scripts/build-wx-windows.sh
|
|
x86_64-w64-mingw32-g++-posix -dumpmachine
|
|
x86_64-w64-mingw32-g++-posix -dumpfullversion
|
|
} )"
|
|
digest="$(printf '%s\n' "$material" | sha256sum | cut -c1-24)"
|
|
key="wx-3.3.3-mingw-$digest"
|
|
if [ -n "${GITHUB_OUTPUT:-}" ]; then printf 'key=%s\n' "$key" >> "$GITHUB_OUTPUT"; else printf '%s\n' "$key"; fi
|
|
exit 0
|
|
fi
|
|
|
|
material="$({
|
|
git rev-parse HEAD:thirdparty/wxwidgets/wxWidgets-3.3.3
|
|
git rev-parse HEAD:scripts/build-wx-linux.sh
|
|
cat thirdparty/wx-rs/VERSION
|
|
gcc -dumpmachine
|
|
gcc -dumpfullversion
|
|
pkg-config --modversion gtk+-3.0
|
|
mapfile -t modules < <(pkg-config --list-all | awk '{print $1}' | LC_ALL=C sort -u)
|
|
for module in "${modules[@]}"; do
|
|
printf '%s=%s\n' "$module" "$(pkg-config --modversion "$module" 2>/dev/null || printf unavailable)"
|
|
done
|
|
getconf GNU_LIBC_VERSION
|
|
} )"
|
|
digest="$(printf '%s\n' "$material" | sha256sum | cut -c1-24)"
|
|
key="wx-3.3.3-$digest"
|
|
if [ -n "${GITHUB_OUTPUT:-}" ]; then
|
|
printf 'key=%s\n' "$key" >> "$GITHUB_OUTPUT"
|
|
else
|
|
printf '%s\n' "$key"
|
|
fi
|