Skip to content

Commit

Permalink
Include sdist CI build in release artefacts.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Nov 2, 2022
1 parent 2fab02c commit ef6e252
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 4 deletions.
37 changes: 33 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,35 @@ on:
create:

jobs:
sdist:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.10

- name: Install Python dependencies
run: python -m pip install -r requirements.txt

- name: Build sdist
run: make sdist

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/*.tar.gz

- name: Upload sdist
uses: actions/upload-artifact@v3
with:
name: sdist
path: dist/*.tar.gz

Linux:

strategy:
Expand Down Expand Up @@ -35,14 +64,14 @@ jobs:

- name: Install Dependency
run: |
pip install --pre "Cython>=3.0.0a11"
python -m pip install --pre -r requirements.txt
- name: Building wheel
run: |
make sdist wheel_${{ matrix.image }}
- name: Copy wheels in dist
run: cp wheelhouse*/fastrlock*.whl dist/
run: cp -v wheelhouse*/fastrlock*.whl dist/

- name: Release
uses: softprops/action-gh-release@v1
Expand Down Expand Up @@ -98,8 +127,8 @@ jobs:

- name: Install Dependency
run: |
pip install --pre "Cython>=3.0.0a11"
pip install wheel
python -m pip install --pre -r requirements.txt
python -m pip install wheel
- name: Building wheel
run: |
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Cython>=3.0.0a11
wheel

0 comments on commit ef6e252

Please sign in to comment.