Skip to content

Commit ab66835

Browse files
ElektrikAkarclaude
andcommitted
Fix CI wheels: disable testing/benchmarks, add macOS to test matrix, Release build
- Add -DDTWC_BUILD_TESTING=OFF and -DDTWC_BUILD_BENCHMARK=OFF to wheel builds — eliminates Catch2 compilation (was ~60% of build time) - Add -DCMAKE_BUILD_TYPE=Release for optimized wheels - Add macos-latest to test_python matrix (was missing) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7f940f0 commit ab66835

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/python-wheels.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,20 @@ jobs:
2222

2323
- uses: pypa/cibuildwheel@v2.21
2424
env:
25-
# Build for Python 3.9-3.13
26-
# STABLE_ABI (Python >= 3.12) handled conditionally in python/CMakeLists.txt
2725
CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-* cp313-*"
2826
CIBW_SKIP: "*-musllinux_* *-win32 *-manylinux_i686"
2927
CIBW_ARCHS_MACOS: "x86_64 arm64"
3028

31-
# Disable commercial/heavy solvers for wheel builds.
29+
# Release build, no tests/benchmarks, max optimization
3230
CIBW_CONFIG_SETTINGS: >-
3331
cmake.args=-DDTWC_BUILD_PYTHON=ON
3432
cmake.args=-DDTWC_ENABLE_GUROBI=OFF
3533
cmake.args=-DDTWC_ENABLE_HIGHS=OFF
34+
cmake.args=-DDTWC_BUILD_TESTING=OFF
35+
cmake.args=-DDTWC_BUILD_BENCHMARK=OFF
36+
cmake.args=-DCMAKE_BUILD_TYPE=Release
3637
37-
# macOS: require 10.15+ for std::filesystem, provide OpenMP hints
38+
# macOS: 10.15+ for std::filesystem, OpenMP
3839
CIBW_ENVIRONMENT_MACOS: >-
3940
MACOSX_DEPLOYMENT_TARGET=10.15
4041
CIBW_BEFORE_BUILD_MACOS: "brew install libomp || true"
@@ -64,7 +65,7 @@ jobs:
6465
name: Test Python ${{ matrix.python }} on ${{ matrix.os }}
6566
strategy:
6667
matrix:
67-
os: [ubuntu-latest, windows-latest]
68+
os: [ubuntu-latest, macos-latest, windows-latest]
6869
python: ['3.10', '3.12']
6970
runs-on: ${{ matrix.os }}
7071
steps:

0 commit comments

Comments
 (0)