Skip to content

Commit ef6e252

Browse files
committed
Include sdist CI build in release artefacts.
1 parent 2fab02c commit ef6e252

File tree

2 files changed

+35
-4
lines changed

2 files changed

+35
-4
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,35 @@ on:
55
create:
66

77
jobs:
8+
sdist:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: 3.10
18+
19+
- name: Install Python dependencies
20+
run: python -m pip install -r requirements.txt
21+
22+
- name: Build sdist
23+
run: make sdist
24+
25+
- name: Release
26+
uses: softprops/action-gh-release@v1
27+
if: startsWith(github.ref, 'refs/tags/')
28+
with:
29+
files: dist/*.tar.gz
30+
31+
- name: Upload sdist
32+
uses: actions/upload-artifact@v3
33+
with:
34+
name: sdist
35+
path: dist/*.tar.gz
36+
837
Linux:
938

1039
strategy:
@@ -35,14 +64,14 @@ jobs:
3564

3665
- name: Install Dependency
3766
run: |
38-
pip install --pre "Cython>=3.0.0a11"
67+
python -m pip install --pre -r requirements.txt
3968
4069
- name: Building wheel
4170
run: |
4271
make sdist wheel_${{ matrix.image }}
4372
4473
- name: Copy wheels in dist
45-
run: cp wheelhouse*/fastrlock*.whl dist/
74+
run: cp -v wheelhouse*/fastrlock*.whl dist/
4675

4776
- name: Release
4877
uses: softprops/action-gh-release@v1
@@ -98,8 +127,8 @@ jobs:
98127

99128
- name: Install Dependency
100129
run: |
101-
pip install --pre "Cython>=3.0.0a11"
102-
pip install wheel
130+
python -m pip install --pre -r requirements.txt
131+
python -m pip install wheel
103132
104133
- name: Building wheel
105134
run: |

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Cython>=3.0.0a11
2+
wheel

0 commit comments

Comments
 (0)