Skip to content

CI: the windows cross build installs the one mingw target it uses - #237

Merged
closer-claudio merged 1 commit into
mainfrom
claudio/20261110-mingw-x86-64
Nov 10, 2026
Merged

closer-claudio merged 1 commit into
mainfrom
claudio/20261110-mingw-x86-64

Conversation

@closer-claudio

@closer-claudio closer-claudio commented Nov 10, 2026 •

Copy link
Copy Markdown

🎯 Why

The mkfs-windows job's apt-get install has failed three runs out of three: https://github.com/forkcloser/erofs/actions/runs/42751440362 on main, and both attempts of https://github.com/forkcloser/erofs/actions/runs/42751565149 on #233, each killed by the script's five-minute guard. 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 one every twenty to sixty seconds while the index refresh just before fetched 13 MB in a second.

🛠️ What

.github/scripts/build-erofs-utils.sh, the windows branch: binutils-mingw-w64-x86-64 gcc-mingw-w64-x86-64-posix mingw-w64-x86-64-dev with --no-install-recommends, in place of mingw-w64.

🧪 How

The cross build is C for one target with one thread model: it calls x86_64-w64-mingw32-gcc, -ar, -windres and -strip, and installs lz4 and the compat headers into /usr/x86_64-w64-mingw32. V: gcc-mingw-w64-x86-64-posix registers x86_64-w64-mingw32-gcc through update-alternatives and depends on binutils-mingw-w64-x86-64, gcc-mingw-w64-base, its runtime and mingw-w64-x86-64-dev (noble's package records); none of the three carries a Recommends; the debs total about 62 MB against the log's 277. V: shellcheck clean, just lint green. U: the install itself ran on no Ubuntu host here; this job's run is the proof, and the guard stays.

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 <noreply@anthropic.com>
Signed-off-by: closer-claudio <claudio@farcloser.world>
@closer-claudio closer-claudio added the internal Changes nothing for a consumer; left out of release notes label Nov 10, 2026
@closer-claudio

Copy link
Copy Markdown
Author

Reviewed at e13678d

@closer-claudio
closer-claudio merged commit a9d76e9 into main Nov 10, 2026
20 checks passed
@closer-claudio
closer-claudio deleted the claudio/20261110-mingw-x86-64 branch November 10, 2026 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Changes nothing for a consumer; left out of release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants