Skip to content

Commit

Permalink
Merge pull request #213 from shaoxc/master
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskermode authored Mar 25, 2024
2 parents 9d54c49 + 4e02cd5 commit 8fb86e4
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,29 @@ jobs:
- [ubuntu-latest, manylinux, x86_64]
- [macos-12, macosx, x86_64]
- [windows-2019, win, AMD64]
- [macos-14, macosx, arm64]

python: ["cp38", "cp39", "cp310", "cp311"]
exclude:
- buildplat: [macos-14, macosx, arm64]
python: "cp38"

fail-fast: false

env:
IS_32_BIT: ${{ matrix.buildplat[2] == 'x86' }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.11'

- name: Build wheels
uses: pypa/cibuildwheel@v2.11.4
uses: pypa/cibuildwheel@v2.16.5
env:
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}*
CIBW_ARCHS: ${{ matrix.buildplat[2] }}
Expand All @@ -59,13 +64,13 @@ jobs:
uses: mxschmitt/action-tmate@v3
timeout-minutes: 15

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
name: ${{ matrix.python }}-${{ matrix.buildplat[1] }}-${{ matrix.buildplat[2] }}

- name: Release wheels
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: wheelhouse/*.whl
Expand Down

0 comments on commit 8fb86e4

Please sign in to comment.