Skip to content

Commit ee34e49

Browse files
committed
Update sdist and wheel actions
1 parent b888e57 commit ee34e49

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ jobs:
1212
name: Build wheels on ${{ matrix.os }}
1313
runs-on: ${{ matrix.os }}
1414
strategy:
15+
fail-fast: false
1516
matrix:
1617
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
1718

1819
steps:
19-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2021
with:
2122
submodules: true
2223

@@ -25,6 +26,15 @@ jobs:
2526
with:
2627
output-dir: wheelhouse
2728

29+
- name: Verify clean directory
30+
run: git diff --exit-code
31+
shell: bash
32+
33+
- uses: actions/upload-artifact@v4
34+
with:
35+
name: cibw-wheels-${{ matrix.os }}
36+
path: wheelhouse/*.whl
37+
2838
- uses: actions/upload-artifact@v4
2939
with:
3040
path: ./wheelhouse/*.whl
@@ -33,23 +43,19 @@ jobs:
3343
name: Build SDist
3444
runs-on: ubuntu-latest
3545
steps:
36-
- uses: actions/checkout@v3
46+
- uses: actions/checkout@v4
3747
with:
3848
submodules: true
3949

40-
- uses: actions/setup-python@v4
41-
42-
- name: Install deps
43-
run: python -m pip install twine build
44-
4550
- name: Build SDist
46-
run: python -m build -s
51+
run: pipx run build --sdist
4752

4853
- name: Check metadata
49-
run: twine check dist/*
54+
run: pipx run twine check dist/*
5055

5156
- uses: actions/upload-artifact@v4
5257
with:
58+
name: cibw-sdist
5359
path: dist/*.tar.gz
5460

5561
upload_all:

0 commit comments

Comments
 (0)