Build and Publish Wheels #13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Publish Wheels | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| workflow_dispatch: {} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build_dist: | |
| name: Build wheels and sdist | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: false | |
| fetch-depth: 0 | |
| - name: Custom checkout submodules | |
| run: bash ./checkout_submodules.sh | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Build sdist | |
| run: | | |
| python -m pip install --upgrade pip build | |
| python -m build --sdist | |
| - name: Build wheels | |
| uses: pypa/cibuildwheel@v3.4.0 | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: dist | |
| path: | | |
| ./wheelhouse/*.whl | |
| ./dist/*.tar.gz |