diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6541578..7fee091 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,46 +3,25 @@ name: Build on: [push, pull_request, workflow_dispatch] jobs: - build_wheels: - name: Build wheels - runs-on: ubuntu-latest + build: + runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v3 - - - name: Build wheels - uses: pypa/cibuildwheel@v2.10.2 - env: - CIBW_BUILD: cp36-* cp37-* cp38-* cp39-* cp310-* cp311-* - CIBW_ARCHS: auto64 - - - uses: actions/upload-artifact@v3 - with: - path: ./wheelhouse/*.whl - - build_legacy_wheels: - name: Build legacy wheels - runs-on: ubuntu-latest + strategy: + matrix: + os: [ ubuntu-latest, macos-latest ] steps: - uses: actions/checkout@v3 - - name: Build wheels - uses: pypa/cibuildwheel@v1.12.0 + uses: pypa/cibuildwheel@v2.10.2 env: - CIBW_BUILD: cp27-* cp35-* + CIBW_BUILD: cp37-* cp38-* cp39-* cp310-* cp311-* CIBW_ARCHS: auto64 - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl - build_sdist: - name: Build source distribution - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Build sdist run: pipx run build --sdist