fix version #5
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: PyPI win and macos deployer | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| jobs: | |
| # Build and deploy Windows AMD64, macOS x86 & macOS arm64 wheels | |
| Matrix-build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [windows-latest, macos-latest] | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Install Python 3.x | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.x | |
| - name: Build wheels | |
| uses: pypa/cibuildwheel@v3.3.0 | |
| env: | |
| CIBW_ARCHS_WINDOWS: "AMD64" | |
| CIBW_ARCHS_MACOS: "x86_64 arm64 universal2" | |
| # Does not fail at unsupported Python versions! | |
| CIBW_BUILD: cp310-* cp311-* cp312-* cp313-* cp314-* | |
| - name: Upload wheels | |
| env: | |
| TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} | |
| TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | |
| run: | | |
| ls -l ./wheelhouse | |
| pip install twine | |
| twine upload --skip-existing ./wheelhouse/*.whl |