summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yaml
blob: 5089d729cfe2ff12e500e9057fd2c476d157c3b6 (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
32
33
34
name: Build
on:
  push:
    branches:
      - master
      - '*.x'
    tags:
      - '*'
jobs:
  wheels:
    name: ${{ matrix.os }}
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, windows-latest, macos-latest]
    env:
      CIBW_SKIP: 'cp27-* cp35-* pp*'
      CIBW_ARCHS_LINUX: auto aarch64
    steps:
      - name: Set up QEMU
        if: runner.os == 'Linux'
        uses: docker/setup-qemu-action@v1
        with:
          platforms: arm64
      - uses: actions/checkout@v2
      - uses: actions/setup-python@v2
        with:
          python-version: '3.9'
      - run: pip install cibuildwheel
      - run: cibuildwheel
      - uses: actions/upload-artifact@v2
        with:
          path: ./wheelhouse