-
Notifications
You must be signed in to change notification settings - Fork 86
53 lines (44 loc) · 1.3 KB
/
build_wheels.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
44
45
46
47
48
49
50
51
52
53
name: Build Wheels
on: [push, pull_request]
jobs:
build_wheels:
name: Build wheel on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_PRERELEASE_PYTHONS: True
CIBW_SKIP: pp*
CIBW_BEFORE_BUILD: bash scripts/before_ci_build.sh
CIBW_TEST_EXTRAS: tests
CIBW_TEST_COMMAND: python {package}/test/runtests.py
- uses: actions/upload-artifact@v3
with:
name: wheels
path: ./wheelhouse
build_wheels_macos_arm64:
name: Build wheel on ${{ matrix.os }} arm64
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12]
steps:
- uses: actions/checkout@v3
- name: Build wheel
uses: pypa/[email protected]
env:
CIBW_PRERELEASE_PYTHONS: True
CIBW_BEFORE_BUILD: bash scripts/before_ci_build_apple_silicon.sh
CIBW_SKIP: pp*
CIBW_ARCHS_MACOS: arm64
CIBW_TEST_EXTRAS: tests
CIBW_TEST_COMMAND: python {package}/test/runtests.py
- uses: actions/upload-artifact@v3
with:
name: wheels
path: ./wheelhouse