| name: Build |
| on: |
| push: |
| branches: |
| master |
| workflow_dispatch: |
|
|
| jobs: |
| make_sdist: |
| name: Build source distribution |
| runs-on: ubuntu-latest |
| steps: |
| - name: Checkout |
| uses: actions/checkout@v3 |
|
|
| - name: Build SDist |
| run: pipx run build --sdist |
|
|
| - uses: actions/upload-artifact@v3 |
| with: |
| path: dist/*.tar.gz |
| |
| build_wheels: |
| name: Build wheels on ${{ matrix.os }} |
| runs-on: ${{ matrix.os }} |
| strategy: |
| matrix: |
| os: [ubuntu-22.04, windows-2019, macos-11] |
|
|
| steps: |
| - name: Checkout |
| uses: actions/checkout@v3 |
|
|
| - name: Build wheels |
| uses: pypa/cibuildwheel@v2.12.3 |
|
|
| - name: Upload |
| uses: actions/upload-artifact@v3 |
| with: |
| path: ./wheelhouse/*.whl |
|
|