Skip to content

Update build_wheels.yml #352

Update build_wheels.yml

Update build_wheels.yml #352

Workflow file for this run

name: Build wheels
on: [push, pull_request]
jobs:
build_wheels_mac:
name: macOS wheels (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-14, macos-15, macos-26]
env:
SYSTEM_VERSION_COMPAT: 0
CIBW_ARCHS_MACOS: universal2
CIBW_BUILD: "cp310-* cp311-* cp312-* cp313-* cp314-*"
CIBW_BUILD_VERBOSITY: 1
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=10.13
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v6
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==3.3.1
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}-${{ github.run_id }}
path: wheelhouse/*.whl
combine_wheels:
name: Combine all wheels into one zip
runs-on: ubuntu-24.04
needs: [build_wheels_mac]
steps:
- name: Download all wheel artifacts
uses: actions/download-artifact@v4
with:
path: all_wheels
- name: Show downloaded files (debug)
run: find all_wheels
- name: Diagnose wheel presence & collisions
run: |
echo "=== ALL WHEELS (full paths) ==="
find all_wheels -name '*.whl' -print | sort
echo "=== WHEEL BASENAMES (duplicates indicate overwrite risk) ==="
find all_wheels -name '*.whl' -printf '%f\n' | sort | uniq -c | sort -nr | head -50
echo "=== UNIVERSAL2 WHEELS FOUND ==="
find all_wheels -name '*universal2*.whl' -print | sort || true
- name: Combine wheels
run: |
mkdir combined
find all_wheels -name '*.whl' -exec cp {} combined/ \;
- name: Upload final wheel archive
uses: actions/upload-artifact@v4
with:
name: all-wheels
path: combined/