Skip to content

Commit 01d11df

Browse files
committed
Actions: Only build as a pure-Python wheel
Workflow was copy-pasted from a Cython project...
1 parent f2bc78c commit 01d11df

1 file changed

Lines changed: 17 additions & 31 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 17 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,56 +9,44 @@ permissions:
99

1010
jobs:
1111
build_wheels:
12-
name: Build wheels on ${{ matrix.os }}
13-
runs-on: ${{ matrix.os }}
14-
strategy:
15-
matrix:
16-
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-14]
12+
name: Build distribution
13+
runs-on: ubuntu-latest
1714

1815
steps:
1916
- uses: actions/checkout@v4
2017

21-
- name: Build wheels
22-
uses: pypa/cibuildwheel@v2.23.3
23-
env:
24-
CIBW_SKIP: "*i686" # Ignore i686, takes a long time and we don't need it
25-
26-
- uses: actions/upload-artifact@v4
18+
- name: Setup python
19+
uses: actions/setup-python@v5
2720
with:
28-
name: cibw-wheel-${{ matrix.os }}-${{ strategy.job-index }}
29-
path: wheelhouse/*.whl
21+
python-version: "3.12"
3022

31-
make_sdist:
32-
name: Make SDist
33-
runs-on: ubuntu-latest
34-
steps:
35-
- uses: actions/checkout@v4
23+
- name: Install pypa/build
24+
run: python3 -m pip install build --user
3625

37-
- name: Build SDist
38-
run: pipx run build --sdist
26+
- name: Build wheel
27+
run: python3 -m build
3928

40-
- uses: actions/upload-artifact@v4
29+
- name: Store build
30+
uses: actions/upload-artifact@v4
4131
with:
42-
name: cibw-sdist
43-
path: dist/*.tar.gz
32+
name: python-package-distributions
33+
path: dist/
4434

4535
release:
46-
needs: [build_wheels, make_sdist]
36+
needs: [build_wheels]
4737
name: Release
4838
runs-on: ubuntu-latest
4939
steps:
5040
- uses: actions/download-artifact@v4
5141
with:
52-
pattern: cibw-*
53-
path: dist
54-
merge-multiple: true
42+
path: dist/
5543

5644
- uses: ncipollo/release-action@v1
5745
with:
5846
artifacts: "dist/*"
5947

6048
upload_all:
61-
needs: [build_wheels, make_sdist]
49+
needs: [build_wheels]
6250
name: Upload to PyPI
6351
environment: pypi
6452
permissions:
@@ -67,9 +55,7 @@ jobs:
6755
steps:
6856
- uses: actions/download-artifact@v4
6957
with:
70-
pattern: cibw-*
71-
path: dist
72-
merge-multiple: true
58+
path: dist/
7359

7460
- uses: pypa/gh-action-pypi-publish@release/v1
7561

0 commit comments

Comments
 (0)