Skip to content

Commit b8af658

Browse files
committed
CI: build base svv wheel with python -m build (no matrix); keep cibuildwheel only for svv-accelerated; update job dependencies
1 parent ae6bba2 commit b8af658

File tree

1 file changed

+11
-22
lines changed

1 file changed

+11
-22
lines changed

.github/workflows/upload.yml

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,36 +13,25 @@ on:
1313
- "false"
1414

1515
jobs:
16-
build_wheels:
17-
# We'll build on a matrix of OSes and Python versions.
18-
runs-on: ${{ matrix.os }}
19-
strategy:
20-
matrix:
21-
os: [macOS-latest, ubuntu-latest, windows-latest]
22-
env:
23-
CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-*"
24-
CIBW_ENVIRONMENT: "PIP_NO_CACHE_DIR=1"
25-
CIBW_BUILD_VERBOSITY: 3
26-
16+
build_base_wheel:
17+
# Build the pure-Python wheel once (no platform matrix needed)
18+
runs-on: ubuntu-latest
2719
steps:
2820
- name: Check out code
2921
uses: actions/checkout@v4
3022

3123
- name: Install build dependencies
3224
run: |
33-
pip install --upgrade pip && pip install cibuildwheel twine
25+
pip install --upgrade pip && pip install build
3426
35-
- name: Upgrade pip, setuptools, wheel
36-
run: python -m pip install --upgrade setuptools wheel
27+
- name: Build base wheel (pure-Python svv)
28+
run: python -m build --wheel --outdir dist
3729

38-
- name: Build wheels
39-
run: cibuildwheel --output-dir dist
40-
41-
- name: Upload artifacts
30+
- name: Upload base wheel artifact
4231
uses: actions/upload-artifact@v4
4332
with:
44-
name: cibw-wheels-${{ matrix.os }}
45-
path: dist
33+
name: base-wheel
34+
path: dist/*.whl
4635

4736
build_wheels_accelerated:
4837
runs-on: ${{ matrix.os }}
@@ -74,7 +63,7 @@ jobs:
7463
path: dist
7564

7665
build_sdist:
77-
needs: [build_wheels]
66+
needs: [build_base_wheel]
7867
runs-on: ubuntu-latest
7968
steps:
8069
- uses: actions/checkout@v4
@@ -92,7 +81,7 @@ jobs:
9281
path: dist/*.tar.gz
9382

9483
upload_pypi:
95-
needs: [build_wheels, build_wheels_accelerated, build_sdist]
84+
needs: [build_base_wheel, build_wheels_accelerated, build_sdist]
9685
runs-on: ubuntu-latest
9786
steps:
9887
- uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)