Skip to content

Commit fe0c417

Browse files
authored
Merge pull request #69 from glensc/sdist-ci
Build sdist in CI
2 parents f21050d + b934085 commit fe0c417

File tree

1 file changed

+35
-7
lines changed

1 file changed

+35
-7
lines changed

.github/workflows/wheels.yml

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,28 @@ on:
66
- "*"
77

88
jobs:
9+
sdist:
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: "3.12"
16+
17+
- name: Install libfuse-dev and pkg-config
18+
run: sudo apt install -y libfuse-dev pkg-config
19+
- name: Install Python build dependencies
20+
run: python -m pip install --upgrade build
21+
- name: Build sdist
22+
run: python -m build --sdist
23+
24+
- uses: actions/upload-artifact@v4
25+
with:
26+
name: sdist
27+
path: dist/*.tar.gz
28+
if-no-files-found: error
29+
retention-days: 2
30+
931
wheel:
1032
runs-on: ubuntu-20.04
1133
env:
@@ -40,20 +62,26 @@ jobs:
4062

4163
merge-artifacts:
4264
name: Download and create one artifact from all jobs
43-
needs: wheel
65+
needs:
66+
- sdist
67+
- wheel
4468
runs-on: ubuntu-20.04
4569
steps:
46-
- name: Download Artifacts
70+
- name: Download sdist artifact
71+
uses: actions/download-artifact@v4
72+
with:
73+
path: dist
74+
name: sdist
75+
76+
- name: Download wheel artifacts
4777
uses: actions/download-artifact@v4
4878
with:
49-
path: wheelhouse
79+
path: dist
5080
pattern: wheels-*
5181
merge-multiple: true
5282

53-
- run: ls -l wheelhouse
54-
5583
- uses: actions/upload-artifact@v4
5684
with:
57-
name: wheels
58-
path: wheelhouse/*.whl
85+
name: dist
86+
path: dist
5987
if-no-files-found: error

0 commit comments

Comments
 (0)