Skip to content

Build Windows ARM64 wheels and preserve MSVC Release optimization - #111

Open
johnnynunez wants to merge 2 commits into
SarahWeiii:mainfrom
johnnynunez:ci/windows-arm64-wheels
Open

johnnynunez wants to merge 2 commits into
SarahWeiii:mainfrom
johnnynunez:ci/windows-arm64-wheels

Conversation

@johnnynunez

@johnnynunez johnnynunez commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Extend wheel.yml to Windows ARM64 on windows-11-arm, using the same cibuildwheel identifiers as win_amd64 (cp39–cp313). The ctypes-only wheel is abi3, so it is built once and tagged cp39-abi3-win_arm64, like the AMD64 wheel.
  • Run the existing run_tests.py on ARM64 with CPython 3.11, 3.12 and 3.13. 3.9 and 3.10 are not tested on ARM64 because NumPy, which the tests need, has no Windows ARM64 wheels for them.
  • Repair the wheel with delvewheel --analyze-existing so the ARM64 OpenMP runtime (vcomp140.dll) needed by lib_coacd.dll is bundled. The default scan only looks at extension modules.
  • Configure only the Boost components OpenVDB needs (iostreams, system and their dependencies). This skips unrelated libraries such as Boost.Context and its ARM assembler setup.
  • Preserve CMake's MSVC Release flags (/O2 /Ob2 /DNDEBUG) or user overrides instead of replacing them with -O3, which MSVC ignores. Before this change, the Release compile lines had no /O2. Non-MSVC flags are unchanged. tests/test_cmake_release.py (configure-only) checks the default flags and that an explicit CMAKE_CXX_FLAGS_RELEASE is kept. It runs in the Windows CI jobs.

This builds on the merged ARM64/ARM64EC source guards in #102. OpenVDB, oneTBB and OpenMP remain enabled.

CI

Full wheel.yml run in the fork, all jobs passing: https://github.com/johnnynunez/CoACD/actions/runs/38311106525

  • ARM64 tests: Ran 6 tests ... OK (skipped=1) on 3.11, 3.12 and 3.13. The skip is an existing upstream one.
  • ARM64 wheel coacd-1.0.14-cp39-abi3-win_arm64.whl: lib_coacd.dll and the bundled vcomp140 DLL are PE Machine 0xAA64, and the RECORD hashes check out.

wheel.yml runs on pushes to main or on manual dispatch, not on pull requests, so this PR's checks don't include it.

Use the same cibuildwheel identifiers as win_amd64. The first build is
reused, so the ARM64 wheel was tagged cp312-abi3 and could not be
installed on CPython 3.11. Test on 3.11 as well; NumPy publishes no
Windows ARM64 wheels for 3.9/3.10, so the trimesh/numpy tests cannot run
there.
@johnnynunez

Copy link
Copy Markdown
Contributor Author

Updated: the windows-11-arm entry now uses the same cibuildwheel identifiers as win_amd64 (cp39–cp313). The wheel is abi3 and cibuildwheel reuses the first build, so the previous cp312/cp313 list produced coacd-*-cp312-abi3-win_arm64.whl, which CPython 3.11 could not install. It is now cp39-abi3-win_arm64, matching the AMD64 wheel. Tests on ARM64 now run on 3.11, 3.12 and 3.13; 3.9/3.10 are not tested because NumPy has no Windows ARM64 wheels for them.

Full wheel.yml run in the fork, all jobs green (ARM64: Ran 6 tests, OK (skipped=1) on each version): https://github.com/johnnynunez/CoACD/actions/runs/38311106525

The failing build-ue-dll (macos-13, ...) check comes from the UE plugin workflow waiting for the retired macos-13 runner; this PR does not touch that workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant