Skip to content

Commit

Permalink
clean up wheel build
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Feb 5, 2024
1 parent ec59a75 commit 5f059d8
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/release-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,23 @@ jobs:
include:
- buildplat: [macos-11, macosx_x86_64]
python: "cp37"
- buildplat: [macos-11, macosx_*]
- buildplat: [macos-11, macosx_universal2]
python: "cp38"
- buildplat: [macos-11, macosx_*]
- buildplat: [macos-11, macosx_universal2]
python: "cp39"
- buildplat: [macos-14, "macosx_*"]
- buildplat: [macos-11, macosx_universal2]
python: "cp39"
- buildplat: [macos-11, macosx_x86_64]
python: "cp310"
- buildplat: [macos-14, macosx_arm64]
python: "cp310"
- buildplat: [macos-14, "macosx_*"]
- buildplat: [macos-11, macosx_x86_64]
python: "cp311"
- buildplat: [macos-14, macosx_arm64]
python: "cp311"
- buildplat: [macos-14, "macosx_*"]
- buildplat: [macos-11, macosx_x86_64]
python: "cp312"
- buildplat: [macos-14, macosx_arm64]
python: "cp312"

steps:
Expand Down Expand Up @@ -82,21 +90,13 @@ jobs:
python -m pip install "cibuildwheel>=2.4,<3"
- name: Build wheel
if: ${{ matrix.buildplat[0] != 'macos-14' }}
env:
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
MACOS_TEST_SKIP: "*arm64"
run: python -m cibuildwheel --output-dir wheelhouse

- name: Build wheel on M1
if: ${{ matrix.buildplat[0] == 'macos-14' }}
env:
CIBW_BUILD: "${{ matrix.python }}-macosx_x86_64 ${{ matrix.python }}-macosx_arm64"
run: python -m cibuildwheel --output-dir wheelhouse

- uses: actions/upload-artifact@v4
with:
name: wheel-${{ matrix.python }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}
name: wheel-${{ matrix.python }}-${{ matrix.buildplat[1] }}
path: ./wheelhouse/*.whl
if-no-files-found: error

Expand Down

0 comments on commit 5f059d8

Please sign in to comment.