-
Notifications
You must be signed in to change notification settings - Fork 13
99 lines (85 loc) · 2.55 KB
/
test_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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: test wheel builds
on:
pull_request:
types: [labeled]
jobs:
macos_wheel:
if: contains(github.event.label.name, 'cibuildwheel-test') || contains(github.event.label.name, 'cibuildwheel-mac-test')
runs-on: macos-latest
strategy:
matrix:
arch: [x86_64, arm64]
cw_build: ["cp37-*", "cp38-*", "cp39-*", "cp310-*", "cp311-*"]
exclude:
- arch: arm64
cw_build: "cp37-*"
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: build wheels
uses: pypa/cibuildwheel@v2.16.5
env:
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_BUILD: ${{ matrix.cw_build }}
CIBW_TEST_SKIP: "*-macosx_arm64"
SPLINEPY_GITHUB_ACTIONS_BUILD: True
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
retention-days: 1
linux_wheel:
if: contains(github.event.label.name, 'cibuildwheel-test') || contains(github.event.label.name, 'cibuildwheel-linux-test')
runs-on: ubuntu-latest
strategy:
matrix:
arch: [x86_64]
cw_build: ["cp37*many*", "cp38*many*", "cp39*many*", "cp310*many*", "cp311*many*"]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: build wheels
uses: pypa/cibuildwheel@v2.16.5
env:
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_BUILD: ${{ matrix.cw_build }}
SPLINEPY_GITHUB_ACTIONS_BUILD: True
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
retention-days: 1
windows_wheel:
if: contains(github.event.label.name, 'cibuildwheel-test') || contains(github.event.label.name, 'cibuildwheel-windows-test')
runs-on: windows-latest
strategy:
matrix:
arch: [AMD64]
cw_build: ["cp37-*", "cp38-*", "cp39-*", "cp310-*", "cp311-*"]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: build wheels
uses: pypa/cibuildwheel@v2.16.5
env:
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_BUILD: ${{ matrix.cw_build }}
CIBW_TEST_SKIP: "*-win_arm64"
SPLINEPY_GITHUB_ACTIONS_BUILD: True
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
retention-days: 1
source_dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Build sdist
run: pipx run build --sdist
- uses: actions/upload-artifact@v3
with:
path: ./dist/*
retention-days: 1