Skip to content

Commit d9f9ca4

Browse files
committed
ci: only build source dist on ubuntu because windows is crap
1 parent 1d18de0 commit d9f9ca4

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

.github/workflows/build_wheels.yml

+15-8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@ name: Build
33
on: [push, pull_request]
44

55
jobs:
6+
make_sdist:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
with:
11+
fetch-depth: 0
12+
13+
- name: Build SDist
14+
run: pipx run build --sdist
15+
16+
- uses: actions/upload-artifact@v3
17+
with:
18+
path: dist/*.tar.gz
19+
620
build_wheels:
721
name: Build wheels on ${{ matrix.os }}
822
runs-on: ${{ matrix.os }}
@@ -13,16 +27,9 @@ jobs:
1327
steps:
1428
- uses: actions/checkout@v3
1529

16-
- name: Source distribution
17-
run: |
18-
pip3 install build
19-
python3 -m build -s
20-
2130
- name: Build wheels
2231
uses: pypa/[email protected]
2332

2433
- uses: actions/upload-artifact@v3
2534
with:
26-
path: |
27-
./wheelhouse/*.whl
28-
./dist/*.tar.gz
35+
path: ./wheelhouse/*.whl

0 commit comments

Comments
 (0)