From e13678da116b31f7d7b119edc4a20a899d00a565 Mon Sep 17 00:00:00 2001 From: closer-claudio Date: Mon, 9 Nov 2026 20:55:13 -0800 Subject: [PATCH] CI: the windows cross build installs the one mingw target it uses The mkfs-windows job's apt-get install has failed three runs out of three: the mingw-w64 metapackage pulls both targets, both thread models and g++, 277 MB in 25 packages, and the runner's mirror served them at a package a minute, past the script's five-minute guard. The cross build is C for x86_64 with the posix thread model: the compiler, its binutils and the headers for that target alone, with no recommended packages, a quarter of the download. Co-Authored-By: Claude Fable 5.1 Signed-off-by: closer-claudio --- .github/scripts/build-erofs-utils.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/scripts/build-erofs-utils.sh b/.github/scripts/build-erofs-utils.sh index 66068c4f..f5a267fe 100755 --- a/.github/scripts/build-erofs-utils.sh +++ b/.github/scripts/build-erofs-utils.sh @@ -132,7 +132,14 @@ build_windows() { [ "$(uname -s)" = "Linux" ] || die "the windows cross-build needs a linux host" if [ -z "${SKIP_DEPS:-}" ]; then apt_get update - apt_get install -y autoconf automake libtool pkg-config mingw-w64 + # Not the mingw-w64 metapackage: it pulls both targets (i686 and + # x86_64), both thread models (posix and win32) and g++, 277 MB in 25 + # packages, which the mirror has served at a package a minute, past + # the guard, on three runs out of three. The cross build is C on one + # target with one thread model: the compiler, its binutils and the + # headers for x86_64 alone, a quarter of that. + apt_get install -y --no-install-recommends autoconf automake libtool pkg-config \ + binutils-mingw-w64-x86-64 gcc-mingw-w64-x86-64-posix mingw-w64-x86-64-dev fi mkdir -p "$work"