ci: drop boost from 32-bit mingw32 install#6091
Merged
Merged
Conversation
MSYS2 removed the mingw-w64-i686-boost package (32-bit i686 is being phased out), so the mingw32 matrix entry now fails at the pacman install step with "target not found: mingw-w64-i686-boost". Boost is optional test coverage (boost::optional / boost::variant casters, gated behind PYBIND11_TEST_BOOST); without it those tests are skipped and the rest of the job builds and runs normally. Move boost to the mingw64 extra_install so the 64-bit job keeps that coverage. Assisted-by: ClaudeCode:claude-opus-4.8
henryiii
commented
Jun 16, 2026
virtuald
approved these changes
Jun 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 AI text below 🤖
Problem
The
🐍 3 • windows-latest • mingw32CI job started failing at the dependency-install step:MSYS2 has dropped the
mingw-w64-i686-boostpackage (32-bit i686 is being phased out), so the install fails before anything is built. This affectsmasterand every open PR — the last greenmingw32run onmasterpredates the package removal.Fix
Boost is optional test coverage:
tests/CMakeLists.txtdoesfind_package(Boost 1.56)and only definesPYBIND11_TEST_BOOST(enabling theboost::optional/boost::variantcaster tests) when it's found. Without it, those tests are skipped and the rest of the job builds and runs normally.This drops
boostfrom the shared install list and addsmingw-w64-x86_64-boostto the mingw64extra_install, so: