Skip to content

Commit

Permalink
ci: fix the new cibuildwheel workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Nov 6, 2024
1 parent 7fa8eea commit de24e91
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ permissions: read-all

jobs:
build_wheels:
name: ${{ matrix.python-tag }}-${{ matrix.platform }}
name: Build Wheel (${{ matrix.python-tag }}-${{ matrix.platform }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest ]
python-tag: [ "cp39", "cp310", "cp311", "cp312", "cp313" ]
Expand All @@ -30,10 +31,20 @@ jobs:
with:
fetch-depth: 0

- name: Set up MSVC (Windows)
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x86_64

- name: Set up CMake and Ninja
uses: lukka/get-cmake@latest

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: ${{ matrix.python-tag }}-${{ matrix.platform }}
CIBW_BUILD_VERBOSITY: 1

- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit de24e91

Please sign in to comment.