ci: rely on the Void CI images for the toolchain

The windows-gcc image already ships MinGW-w64 GCC 16 (UCRT), Wine and
CMake/Ninja, and the vulkan image ships GCC 16, CMake 4 and the Void
dependencies. Drop the MinGW download, the apt package installs and the
Wine install; the Windows lane now uses the repository's PATH-based
MinGW toolchain file and stages the runtime DLLs from the MinGW sysroot.
This commit is contained in:
faumaray committed 2026-12-06 07:40:05 +03:00
1 parent a4e855f130
commit 51d437d339
3 files changed
+22 -98

No files matched your search

-57
View File
@@ -1,57 +0,0 @@
#!/usr/bin/env bash
# Installs the MinGW-w64 GCC 16 cross toolchain (UCRT) used to build VBS for
# Windows from Linux: https://github.com/AmanoTeam/mingw-gcc-cross (gcc-16).
#
# Usage: install-mingw.sh [PREFIX] (default /opt/mingw-gcc-cross)
set -euo pipefail
release=gcc-16
host=x86_64-unknown-linux-gnu
url="https://github.com/AmanoTeam/mingw-gcc-cross/releases/download/${release}/${host}.tar.xz"
prefix="${1:-/opt/mingw-gcc-cross}"
compiler="${prefix}/bin/x86_64-w64-mingw32-ucrt-g++"
# cc1plus links against the GMP/MPFR/MPC/isl/zstd copies shipped in the
# toolchain, so the host loader needs the prefix on its search path.
export LD_LIBRARY_PATH="${prefix}/lib:${prefix}/lib64:${LD_LIBRARY_PATH:-}"
if [ -n "${GITHUB_ENV:-}" ]; then
echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> "${GITHUB_ENV}"
fi
self_check() {
local probe
probe="$(mktemp -d)"
printf 'int main() { return 0; }\n' > "${probe}/probe.cpp"
if ! "${compiler}" -c "${probe}/probe.cpp" -o "${probe}/probe.o"; then
echo "the MinGW-w64 toolchain at '${prefix}' cannot compile:" >&2
"${compiler}" -v -c "${probe}/probe.cpp" -o "${probe}/probe.o" 2>&1 | tail -n 20 >&2 ||
true
ls -la "${prefix}/libexec/gcc/x86_64-w64-mingw32/"*/cc1plus >&2 || true
df -h "${prefix}" >&2 || true
rm -rf "${probe}"
exit 1
fi
rm -rf "${probe}"
echo "MinGW-w64 toolchain OK: $("${compiler}" --version | head -n1)"
}
if [ -x "${compiler}" ]; then
echo "using the existing MinGW-w64 toolchain at ${prefix}"
self_check
exit 0
fi
sudo=""
if [ "$(id -u)" -ne 0 ]; then sudo="sudo"; fi
tmp="$(mktemp -d)"
trap 'rm -rf "${tmp}"' EXIT
if command -v curl >/dev/null 2>&1; then
curl -fsSL "${url}" -o "${tmp}/toolchain.tar.xz"
else
wget -qO "${tmp}/toolchain.tar.xz" "${url}"
fi
${sudo} rm -rf "${prefix}"
${sudo} mkdir -p "${prefix}"
${sudo} tar -xJf "${tmp}/toolchain.tar.xz" -C "${prefix}" --strip-components=1
echo "toolchain file: ${prefix}/usr/local/share/mingw/cmake/x86_64-w64-mingw32-ucrt.cmake"
self_check