fix(build): use rust-builder-glibc-windows for Windows cross-build #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/windows-build-mingw-image"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes YT-23.
Problem
build-binary-windows.ymlfailed in the dependency-priming stage:ring v0.17.14could not findx86_64-w64-mingw32-gccandwindows-sysfailed callingx86_64-w64-mingw32-dlltool. The builder stage usedrust-builder-glibc, which deliberately excludes the mingw-w64 toolchain. Broken since governance adoption (0722193); the v1.0.1 image bump was unrelated.Fix
ghcr.io/niceguyit/rust-builder-glibc-windows:v1.1.0-rust1.94-trixie(current published version per oci-images config; manifest verified live on ghcr.io). This image shipsgcc-mingw-w64-x86-64and preinstalls thex86_64-pc-windows-gnurustup target, matching the forgejo-mcp pattern.rustup target add x86_64-pc-windows-gnulayer.justfiledev_image and the glibc/musl Dockerfiles stay on their existing images; only the Windows cross-build needs mingw.Verification
Local
docker buildx build --target binary --output type=local,dest=./output-test -f oci-build/Dockerfile.windows .completed and exportedyoutrack-mcp.exe(PE32+ executable, x86-64, 4.8MB).