diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 3fd1b54b..a75ab943 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -167,22 +167,23 @@ jobs: name: wheels-macos-${{ matrix.platform.target }}-obstore path: dist - # sdist: - # runs-on: ubuntu-latest - # strategy: - # matrix: - # steps: - # - uses: actions/checkout@v4 - # - name: Build sdist - # uses: PyO3/maturin-action@v1 - # with: - # command: sdist - # args: --out dist --manifest-path obstore/Cargo.toml - # - name: Upload sdist - # uses: actions/upload-artifact@v4 - # with: - # name: wheels-sdist-obstore - # path: dist + sdist: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build sdist + uses: PyO3/maturin-action@v1 + with: + command: sdist + args: --out dist --manifest-path obstore/Cargo.toml + - name: Test sdist + run: | + python -m pip install dist/*.tar.gz + - name: Upload sdist + uses: actions/upload-artifact@v4 + with: + name: wheels-sdist-obstore + path: dist release: runs-on: ubuntu-latest @@ -194,7 +195,7 @@ jobs: # # IMPORTANT: this permission is mandatory for trusted publishing # id-token: write if: startsWith(github.ref, 'refs/tags/') - needs: [linux, musllinux, windows, macos] + needs: [linux, musllinux, windows, macos, sdist] steps: - uses: actions/download-artifact@v4 with: