ci: install a C++26-capable MinGW-w64 for the Windows cross build
VoidBuildSystem CI / 1 · Requirements (push) Successful in 6s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 2m17s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Failing after 23s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Failing after 26s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Skipped
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Skipped
VoidBuildSystem CI / 4B · Windows package (debug) (push) Skipped
VoidBuildSystem CI / 4B · Windows package (relwithdebinfo) (push) Skipped
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 4m43s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 4m44s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 2m8s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Successful in 7m8s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Successful in 7m13s
VoidBuildSystem CI / 4A · Linux package (debug) (push) Successful in 1m51s
VoidBuildSystem CI / 4A · Linux package (relwithdebinfo) (push) Successful in 2m1s
VoidBuildSystem CI / 4A · Linux package (sanitizers) (push) Successful in 55s
VoidBuildSystem CI / 5 · Release (push) Skipped

The Wine build compiles VBS itself, so MinGW GCC >= 16 is required.
install-mingw.sh keeps the toolchain already on PATH when compatible,
otherwise takes it from the project dev environment
(dev cpp-gcc -p pkgsCross.mingwW64.stdenv.cc), then falls back to the
distribution package, and fails with a clear message when none
provides GCC 16.
This commit is contained in:
faumaray committed 2026-12-06 06:41:58 +03:00
1 parent d5f2974cdd
commit 7bdece0680
2 files changed
+68 -19

No files matched your search

+1 -19
View File
@@ -255,25 +255,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install the MinGW-w64 cross toolchain
run: |
sudo=""
if [ "$(id -u)" -ne 0 ]; then sudo="sudo"; fi
if ! command -v x86_64-w64-mingw32-g++ >/dev/null 2>&1; then
if command -v apt-get >/dev/null 2>&1; then
${sudo} apt-get update
${sudo} apt-get install -y mingw-w64
fi
fi
if ! command -v x86_64-w64-mingw32-g++ >/dev/null 2>&1; then
echo "x86_64-w64-mingw32-g++ is required for the Windows build" >&2
exit 1
fi
x86_64-w64-mingw32-g++ --version | head -1
major="$(x86_64-w64-mingw32-g++ -dumpversion | cut -d. -f1)"
if [ "${major:-0}" -lt 16 ]; then
echo "MinGW-w64 GCC 16 or newer is required for C++26 (found ${major:-unknown}); install it on the runner image" >&2
exit 1
fi
run: bash .gitea/scripts/install-mingw.sh
- name: Configure
run: |
cmake -S . -B "build/wine-${{ matrix.variant }}" -G Ninja \