diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..6541578 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,51 @@ +name: Build + +on: [push, pull_request, workflow_dispatch] + +jobs: + build_wheels: + name: Build wheels + runs-on: ubuntu-latest + + 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 + + steps: + - uses: actions/checkout@v3 + + - name: Build wheels + uses: pypa/cibuildwheel@v1.12.0 + env: + CIBW_BUILD: cp27-* cp35-* + 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 + + - uses: actions/upload-artifact@v3 + with: + path: dist/*.tar.gz