fix(ci): fix wheel version detection & windows wheel ci (#303)

This commit is contained in:
Jalin Wang
2026-04-02 22:26:00 +08:00
committed by GitHub
parent b6f2d4367d
commit 2cb1a146fb
3 changed files with 19 additions and 5 deletions
+3 -1
View File
@@ -28,7 +28,9 @@ jobs:
uses: actions/checkout@v6
with:
submodules: recursive
fetch-tags: true
fetch-depth: 0
- name: Set up Python (for cibuildwheel controller)
uses: actions/setup-python@v6
with:
+12 -2
View File
@@ -1,8 +1,6 @@
name: Build and Test PyPi Wheels on Windows
on:
push:
branches: [ "main" ]
workflow_call:
inputs:
publish_target:
@@ -71,6 +69,8 @@ jobs:
uses: actions/checkout@v6
with:
submodules: recursive
fetch-tags: true
fetch-depth: 0
- name: Cleanup left marker files
run: |
@@ -81,6 +81,11 @@ jobs:
with:
python-version: '3.11'
- name: Set up MSVC environment
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
- name: Install cibuildwheel
run: |
pip install --upgrade pip
@@ -100,6 +105,11 @@ jobs:
- name: Build wheels using cibuildwheel
if: steps.cache-wheels.outputs.cache-hit != 'true'
shell: powershell
# env:
# CIBW_BUILD_VERBOSITY: 1
# CIBW_DEBUG_TRACEBACK: 1
# CIBW_DEBUG_KEEP_CONTAINER: 1
run: |
python -m cibuildwheel --output-dir wheelhouse