| 
 | 1 | +name: Build wheels  | 
 | 2 | + | 
 | 3 | +on: [push, pull_request]  | 
 | 4 | + | 
 | 5 | +jobs:  | 
 | 6 | +  build_wheels:  | 
 | 7 | +    name: Build wheels on ${{ matrix.os }}  | 
 | 8 | +    runs-on: ${{ matrix.os }}  | 
 | 9 | +    strategy:  | 
 | 10 | +      matrix:  | 
 | 11 | +        os: [ubuntu-22.04, macos-12, windows-2022]  | 
 | 12 | +        # `windows-2022, ` blocked by https://github.com/pybind/pybind11/issues/3445#issuecomment-1525500927  | 
 | 13 | + | 
 | 14 | +    steps:  | 
 | 15 | +      - uses: actions/checkout@v3  | 
 | 16 | +      - name: 'Brew setup on macOS' # x-ref c8e49ba8f8b9ce  | 
 | 17 | +        if: ${{ startsWith(matrix.os, 'macos-') == true }}  | 
 | 18 | +        run: |  | 
 | 19 | +          set -e pipefail  | 
 | 20 | +          brew install automake pkg-config ninja  | 
 | 21 | +
  | 
 | 22 | +      - name: Build wheels  | 
 | 23 | + | 
 | 24 | +        env:  | 
 | 25 | +          CIBW_MANYLINUX_X86_64_IMAGE: "manylinux_2_28"  | 
 | 26 | +          CIBW_SKIP: "*-win32 cp27-* cp35-* cp36-* cp37-* pp* *_i686 *musllinux*"  | 
 | 27 | +          CIBW_ARCHS_MACOS: "x86_64 arm64"  | 
 | 28 | +          CIBW_BUILD_VERBOSITY: 3  | 
 | 29 | +          MACOSX_DEPLOYMENT_TARGET: "12.0"  | 
 | 30 | +        with:  | 
 | 31 | +          package-dir: "apis/python"  | 
 | 32 | +          output-dir: wheelhouse  | 
 | 33 | +          config-file: "{package}/pyproject.toml"  | 
 | 34 | + | 
 | 35 | +      - uses: actions/upload-artifact@v3  | 
 | 36 | +        with:  | 
 | 37 | +          path: ./wheelhouse/*.whl  | 
 | 38 | + | 
 | 39 | +# TODO: Needs support for pulling in the root directory  | 
 | 40 | +#  build_sdist:  | 
 | 41 | +#    name: Build source distribution  | 
 | 42 | +#    runs-on: ubuntu-latest  | 
 | 43 | +#    steps:  | 
 | 44 | +#      - uses: actions/checkout@v3  | 
 | 45 | +#  | 
 | 46 | +#      - name: Build sdist  | 
 | 47 | +#        run: pipx run build --sdist  | 
 | 48 | +#  | 
 | 49 | +#      - uses: actions/upload-artifact@v3  | 
 | 50 | +#        with:  | 
 | 51 | +#          path: dist/*.tar.gz  | 
0 commit comments