Bake wine into the runner image; wine step is now a no-op when present
Build / prepare (push) Successful in 15s
Build / build-linux (push) Successful in 2m43s
Build / build-windows (push) Failing after 14m10s
Build / finalize-release (push) Successful in 4s

This commit is contained in:
2026-10-06 09:21:30 +11:00
parent 805c32cf75
commit cee44b3dbd
+9 -3
View File
@@ -245,9 +245,15 @@ jobs:
- name: Install Wine (NSIS cross-build)
run: |
set -euo pipefail
# NSIS's makensis.exe is 32-bit, so wine32 is required. The wine64 package
# alone ships only /usr/lib/wine/wine64 (no `wine` on PATH), so install the
# `wine` meta package too. Runner images have a stale apt index, so update first.
# wine + wine32 + wine64 are prebaked in the runner image used on pizzabox,
# so this is normally a no-op. Fallback below covers runners without it.
# NSIS's makensis.exe is 32-bit, so wine32 is required; the wine64 package
# alone ships only /usr/lib/wine/wine64 (no `wine` on PATH).
if command -v wine >/dev/null 2>&1; then
echo "wine already present: $(wine --version)"
exit 0
fi
sudo dpkg --add-architecture i386
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends wine wine32 wine64