Switch to unified view

a b/.github/workflows/test-build.yml
1
# This tries to build packages, and tests the packages.
2
# It runs on every push to branches following the pattern v*.*.*.
3
# It makes sure that everything will run when the version is released.
4
5
name: Test Build
6
7
8
on:
9
  workflow_dispatch:
10
  pull_request:
11
    branches:
12
    - v*.*.*
13
    - build-*
14
15
jobs:
16
  build_wheels:
17
    name: Build wheels on ${{ matrix.os }}
18
    runs-on: ${{ matrix.os }}
19
    strategy:
20
      matrix:
21
        os: [ubuntu-22.04, windows-latest, macos-latest]
22
23
    steps:
24
      - uses: actions/checkout@v2
25
26
      - name: Build wheels
27
        # 2.4 is too low (can't build for macos, 2.16 is too high (OpenSSL issues)
28
        uses: pypa/cibuildwheel@v2.16.5
29
        env:
30
          CIBW_ARCHS_MACOS: "x86_64 arm64"
31
          CIBW_ENVIRONMENT: PIP_EXTRA_INDEX_URL=https://download.pytorch.org/whl/cpu
32
33
34
  build_sdist:
35
    name: Build source distribution
36
    runs-on: ubuntu-22.04
37
    steps:
38
      - uses: actions/checkout@v2
39
40
      - name: Build sdist
41
        run: pipx run build --sdist