Skip to content

ci: drop boost from 32-bit mingw32 install#6091

Merged
henryiii merged 2 commits into
pybind:masterfrom
henryiii:ci-mingw32-drop-boost
Jun 17, 2026
Merged

ci: drop boost from 32-bit mingw32 install#6091
henryiii merged 2 commits into
pybind:masterfrom
henryiii:ci-mingw32-drop-boost

Conversation

@henryiii

Copy link
Copy Markdown
Collaborator

🤖 AI text below 🤖

Problem

The 🐍 3 • windows-latest • mingw32 CI job started failing at the dependency-install step:

pacman ... 'mingw-w64-i686-boost' 'mingw-w64-i686-catch'
error: target not found: mingw-w64-i686-boost

MSYS2 has dropped the mingw-w64-i686-boost package (32-bit i686 is being phased out), so the install fails before anything is built. This affects master and every open PR — the last green mingw32 run on master predates the package removal.

Fix

Boost is optional test coverage: tests/CMakeLists.txt does find_package(Boost 1.56) and only defines PYBIND11_TEST_BOOST (enabling the boost::optional / boost::variant caster tests) when it's found. Without it, those tests are skipped and the rest of the job builds and runs normally.

This drops boost from the shared install list and adds mingw-w64-x86_64-boost to the mingw64 extra_install, so:

  • mingw32 (i686) no longer requests the missing package and goes green again.
  • mingw64 (x86_64) keeps full boost test coverage.

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
Comment thread .github/workflows/ci.yml Outdated
@henryiii henryiii merged commit f00aa6f into pybind:master Jun 17, 2026
86 checks passed
@henryiii henryiii deleted the ci-mingw32-drop-boost branch June 17, 2026 12:13
@github-actions github-actions Bot added the needs changelog Possibly needs a changelog entry label Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs changelog Possibly needs a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants