Improve wheel releases
#284
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: CI | |
| on: [push, pull_request, workflow_dispatch] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build_wheels: | |
| name: Build wheels on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| # matrix: | |
| # os: [ubuntu-20.04, windows-2022, macos-14] | |
| matrix: | |
| include: | |
| - os: macos-12 # mac x86 | |
| - os: macos-14 # mac arm | |
| - os: ubuntu-20.04 | |
| cibw_archs: arm64 | |
| - os: ubuntu-20.04 | |
| cibw_archs: x86_64 | |
| - os: windows-2022 | |
| cibw_archs: x86_64 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build wheels | |
| uses: pypa/cibuildwheel@v3.2.1 | |
| env: | |
| CIBW_ARCHS: ${{ matrix.cibw_archs }} | |
| #CIBW_BUILD: "cp*-manylinux_* cp*-musllinux_*" | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist-${{ matrix.os }}-${{ matrix.cibw_archs }} | |
| path: ./wheelhouse/*.whl | |
| # build: | |
| # runs-on: ${{ matrix.os }} | |
| # strategy: | |
| # fail-fast: false | |
| # matrix: | |
| # os: [ubuntu-latest, windows-latest, macos-latest] | |
| # python-version: [3.9, "3.10", "3.11", "3.12", "3.13", "3.14"] | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # - name: Set up Python ${{ matrix.python-version }} | |
| # uses: actions/setup-python@v5 | |
| # with: | |
| # python-version: ${{ matrix.python-version }} | |
| # - name: Install test dependencies | |
| # run: python -m pip install .[test] | |
| # - name: run tests | |
| # run: python run_tests.py |