-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fix the new cibuildwheel workflow
- Loading branch information
1 parent
7fa8eea
commit de24e91
Showing
1 changed file
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" ] | ||
|
@@ -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: | ||
|