Skip to content

Commit

Permalink
Building sdist on github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tfmoraes committed Apr 9, 2024
1 parent 076eaa9 commit 7f6292f
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,34 @@ jobs:
path: ./wheelhouse/*.whl
name: artifact-${{ matrix.os }}-${{ matrix.platform_id }}-python-${{ matrix.python }}

build_sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true

- uses: actions/setup-python@v5
name: Install Python host for sdist
with:
python-version: '3.9'

- name: Create sdist
run: |
python -m pip install --upgrade pip
pip install setuptool
python setup.py sdist
- uses: actions/upload-artifact@v4
with:
path: ./dist/*.tar.gz
name: artifact-${{ matrix.os }}-${{ matrix.platform_id }}-python-${{ matrix.python }}

merge:
runs-on: ubuntu-latest
needs: build_wheels
needs:
- build_wheels
- build_sdist
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
Expand Down

0 comments on commit 7f6292f

Please sign in to comment.