chore: release 0.26.0 #52
Workflow file for this run
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: Upload to PyPI | |
| on: | |
| push: | |
| tags: ["v*"] | |
| jobs: | |
| build-sdist: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| with: | |
| submodules: true | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - name: Build sources | |
| run: |- | |
| pip install build | |
| python -mbuild -n -s | |
| - name: Upload sources | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: dist-sources | |
| path: dist/*.tar.gz | |
| retention-days: 2 | |
| build-wheels: | |
| runs-on: ${{matrix.os}} | |
| strategy: | |
| matrix: | |
| include: | |
| - { os: windows-2025, cibw_arch: AMD64 } | |
| - { os: windows-11-arm, cibw_arch: ARM64 } | |
| - { os: ubuntu-24.04, cibw_arch: x86_64 } | |
| - { os: ubuntu-24.04-arm, cibw_arch: aarch64 } | |
| - { os: macos-15, cibw_arch: arm64 } | |
| - { os: ubuntu-24.04, cibw_arch: riscv64 } | |
| - { os: macos-15-intel, cibw_arch: x86_64 } | |
| steps: | |
| - name: Set up QEMU | |
| if: matrix.cibw_arch == 'riscv64' | |
| uses: docker/setup-qemu-action@v4 | |
| with: | |
| platforms: linux/riscv64 | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| with: | |
| submodules: true | |
| - name: Build wheels | |
| uses: pypa/cibuildwheel@v4.1 | |
| env: | |
| CIBW_ARCHS: ${{matrix.cibw_arch}} | |
| CIBW_SKIP: "*-musllinux_aarch64 *-musllinux_riscv64 cp31?t-*" | |
| # FIXME: stop skipping when the tests stop crashing | |
| CIBW_TEST_SKIP: "*-win_* *-linux_riscv64" | |
| - name: Upload wheels | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: dist-wheels-${{matrix.os}}-${{matrix.cibw_arch}} | |
| path: wheelhouse/*.whl | |
| retention-days: 2 | |
| release: | |
| runs-on: ubuntu-latest | |
| needs: [build-sdist, build-wheels] | |
| steps: | |
| - name: Download artifacts | |
| uses: actions/download-artifact@v8 | |
| with: | |
| path: dist | |
| pattern: dist-* | |
| merge-multiple: true | |
| - name: Check artifacts | |
| run: ls -l dist | |
| - name: Upload to pypi | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| password: ${{secrets.PYPI_API_TOKEN}} | |
| - name: Create GitHub release | |
| run: gh release create "$GITHUB_REF_NAME" --generate-notes | |
| env: | |
| GH_TOKEN: ${{github.token}} | |
| GH_REPO: ${{github.repository}} |