Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ jobs:

- name: Set up OpenMP for macOS
if: runner.os == 'macOS'
shell: bash
run: |
set -euxo pipefail

# Use a conda-forge libomp built against an old macOS SDK so that
# delocate can bundle it into wheels targeting 10.9 (x86_64) or
# 11.0 (arm64). Homebrew's libomp targets the runner's OS, which
Expand All @@ -87,7 +90,9 @@ jobs:

PREFIX="$HOME/openmp"
mkdir -p "$PREFIX"
curl -sL "$OPENMP_URL" | tar xj -C "$PREFIX"
curl --fail --retry 3 -sL "$OPENMP_URL" | tar xj -C "$PREFIX"

ls "$PREFIX/lib/libomp.dylib"

echo "CC=/usr/bin/clang" >> $GITHUB_ENV
echo "CXX=/usr/bin/clang++" >> $GITHUB_ENV
Expand All @@ -99,11 +104,15 @@ jobs:
- name: Build wheels with cibuildwheel
uses: pypa/cibuildwheel@ee02a1537ce3071a004a6b08c41e72f0fdc42d9a # v3.4.0
env:
# On PR: only build extremal Python versions (3.8 and 3.13)
# On PR: only build extremal Python versions (3.8 and 3.14)
# On main/release: build all supported versions (default behavior)
CIBW_BUILD: ${{ github.event_name == 'pull_request' && 'cp38-* cp313-*' || '' }}
# On PR: skip cp38 musllinux builds (they take ~6 minutes)
CIBW_SKIP: ${{ github.event_name == 'pull_request' && 'cp38-musllinux*' || '' }}
CIBW_BUILD: ${{ github.event_name == 'pull_request' && 'cp38-* cp314-*' || '' }}
# Always skip free-threaded builds (testing infrastructure not yet in place).
# On PR: also skip cp38 musllinux builds (they take ~6 minutes).
CIBW_SKIP: ${{ github.event_name == 'pull_request' && 'cp*t-* cp38-musllinux*' || 'cp*t-*' }}
# Only build 64-bit Windows wheels. scipy and matplotlib have dropped
# win32 support, making 32-bit wheels untestable in CI.
CIBW_ARCHS_WINDOWS: AMD64

- name: Generate build provenance attestations for wheels
# Only generate attestations for trusted workflows (not fork PRs)
Expand Down Expand Up @@ -190,6 +199,7 @@ jobs:
3.11
3.12
3.13
3.14

- name: Install script dependencies
shell: bash
Expand Down
8 changes: 0 additions & 8 deletions cibuildwheel-scripts/generate_test_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@
python-filter: ""
run-on-pr: true

- os: windows-latest
platform: windows-x86
python-cmd: python
setup-python: true
setup-python-arch: x86
python-filter: "win32"
run-on-pr: false

- os: macos-15-intel
platform: macos-15-intel
python-cmd: python
Expand Down
Loading