Skip to content

Commit b71c925

Browse files
authored
Speed up CI runs (#746)
The latest CI runs are taking almost 30 minutes to build on some OSes. Split the build by both python version to speed this up
1 parent 8f73298 commit b71c925

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,14 @@ jobs:
2828
strategy:
2929
matrix:
3030
os: [macos-latest, ubuntu-latest, windows-latest, ubuntu-24.04-arm]
31+
python-version: [38, 39, 310, 311, 312, 313, 314]
3132

3233
steps:
3334
- uses: actions/checkout@v6
3435

3536
- name: Build wheels
37+
env:
38+
CIBW_BUILD: cp${{matrix.python-version}}-*
3639
uses: pypa/cibuildwheel@v3.4.1
3740

3841
- name: Build sdist
@@ -49,7 +52,7 @@ jobs:
4952
- name: Upload Binaries
5053
uses: actions/upload-artifact@v7
5154
with:
52-
name: wheels-${{ matrix.os }}
55+
name: wheels-${{ matrix.os }}-${{ matrix.python-version }}
5356
path: ./wheelhouse/*.whl
5457

5558
test-wheels:
@@ -66,7 +69,8 @@ jobs:
6669
path: implicit_source
6770
- uses: actions/download-artifact@v8
6871
with:
69-
name: wheels-${{ matrix.os }}
72+
pattern: wheels-${{ matrix.os }}-*
73+
merge-multiple: true
7074
- name: Set up Python ${{ matrix.python-version }}
7175
uses: actions/setup-python@v6
7276
with:

0 commit comments

Comments
 (0)