-
Notifications
You must be signed in to change notification settings - Fork 29
43 lines (34 loc) · 1.08 KB
/
test-build.yml
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
35
36
37
38
39
40
41
42
43
# This tries to build packages, and tests the packages.
# It runs on every push to branches following the pattern v*.*.*.
# It makes sure that everything will run when the version is released.
name: Test Build
on:
workflow_dispatch:
pull_request:
branches:
- v*.*.*
- build-*
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Build wheels
# 2.4 is too low (can't build for macos, 2.16 is too high (OpenSSL issues)
uses: pypa/[email protected]
env:
CIBW_ARCHS_MACOS: "x86_64 arm64"
# UV_INDEX_STRATEGY: "unsafe-first-match"
# UV_EXTRA_INDEX_URL: "https://download.pytorch.org/whl/cpu"
PIP_EXTRA_INDEX_URL: "https://download.pytorch.org/whl/cpu"
build_sdist:
name: Build source distribution
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Build sdist
run: pipx run build --sdist