diff --git a/.github/workflows/wheels.yaml b/.github/workflows/build-and-release.yaml similarity index 54% rename from .github/workflows/wheels.yaml rename to .github/workflows/build-and-release.yaml index e49dad5..5b3e756 100644 --- a/.github/workflows/wheels.yaml +++ b/.github/workflows/build-and-release.yaml @@ -1,9 +1,6 @@ -name: Build +name: Build Release on: workflow_dispatch - # push: - # branches: - # - main jobs: build_wheels: @@ -11,7 +8,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-20.04, windows-2019, macOS-11] + os: [ubuntu-latest, windows-latest, macOS-latest] steps: - uses: actions/checkout@v3 @@ -30,10 +27,26 @@ jobs: - name: Build wheels run: python -m cibuildwheel --output-dir wheelhouse - # to supply options, put them in 'env', like: - # env: - # CIBW_SOME_OPTION: value - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl + + build_sdist: + name: Build source distribution + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + submodules: "true" + - uses: actions/setup-python@v3 + - name: Install dependencies + run: | + python -m pip install --upgrade pip pytest cmake scikit-build setuptools + - name: Build source distribution + run: | + python setup.py sdist + - uses: actions/upload-artifact@v3 + with: + path: ./dist/*.tar.gz \ No newline at end of file