Skip to content

Commit

Permalink
Merge pull request #69 from glensc/sdist-ci
Browse files Browse the repository at this point in the history
Build sdist in CI
  • Loading branch information
sdelafond authored Mar 12, 2024
2 parents f21050d + b934085 commit fe0c417
Showing 1 changed file with 35 additions and 7 deletions.
42 changes: 35 additions & 7 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,28 @@ on:
- "*"

jobs:
sdist:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install libfuse-dev and pkg-config
run: sudo apt install -y libfuse-dev pkg-config
- name: Install Python build dependencies
run: python -m pip install --upgrade build
- name: Build sdist
run: python -m build --sdist

- uses: actions/upload-artifact@v4
with:
name: sdist
path: dist/*.tar.gz
if-no-files-found: error
retention-days: 2

wheel:
runs-on: ubuntu-20.04
env:
Expand Down Expand Up @@ -40,20 +62,26 @@ jobs:

merge-artifacts:
name: Download and create one artifact from all jobs
needs: wheel
needs:
- sdist
- wheel
runs-on: ubuntu-20.04
steps:
- name: Download Artifacts
- name: Download sdist artifact
uses: actions/download-artifact@v4
with:
path: dist
name: sdist

- name: Download wheel artifacts
uses: actions/download-artifact@v4
with:
path: wheelhouse
path: dist
pattern: wheels-*
merge-multiple: true

- run: ls -l wheelhouse

- uses: actions/upload-artifact@v4
with:
name: wheels
path: wheelhouse/*.whl
name: dist
path: dist
if-no-files-found: error

0 comments on commit fe0c417

Please sign in to comment.