summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yaml
blob: 3719bf2240b9d79f159e84406f5304385901eeaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Build
on:
  push:
    branches:
      - main
      - '*.x'
    tags:
      - '*'
jobs:
  wheels:
    name: ${{ matrix.os }}
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, windows-latest, macos-latest]
    steps:
      - uses: actions/checkout@v3
      - name: Set up QEMU
        if: runner.os == 'Linux'
        uses: docker/setup-qemu-action@v2
        with:
          platforms: arm64
      - uses: joerick/cibuildwheel@v2.11.4
        env:
          CIBW_SKIP: 'pp*'
          CIBW_ARCHS_LINUX: auto aarch64
          CIBW_ARCHS_MACOS: auto universal2
      - uses: actions/upload-artifact@v3
        with:
          path: ./wheelhouse