-
Notifications
You must be signed in to change notification settings - Fork 13
103 lines (86 loc) · 2.97 KB
/
wheeltest.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
100
101
102
103
name: Test build wheels
on:
workflow_dispatch:
jobs:
build_many_wheels:
name: Build wheels on standard linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.16.5
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: "*manylinux*"
# CIBW_SKIP: cp36* cp37* pp*
CIBW_SKIP: cp36* cp37* cp38* cp39* cp310* cp311* pp*
CIBW_BUILD_VERBOSITY: 3
CIBW_BEFORE_BUILD: pip install -U pybind11-global
CIBW_BEFORE_TEST: pip install -U -r test_requirements.txt
CIBW_TEST_COMMAND: pytest --skip_gha {package}/tests
- uses: actions/upload-artifact@v4
with:
name: manylinux-artifacts
path: ./wheelhouse/*.whl
build_musl_wheels:
name: Build wheels on musl linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.16.5
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: "*musllinux*"
# CIBW_SKIP: cp36* cp37* pp*
CIBW_SKIP: cp36* cp37* cp38* cp39* cp310* cp311* pp*
CIBW_BUILD_VERBOSITY: 3
CIBW_BEFORE_BUILD: pip install -U pybind11-global
CIBW_BEFORE_TEST: pip install -U -r test_requirements.txt
CIBW_TEST_COMMAND: pytest --skip_gha {package}/tests
- uses: actions/upload-artifact@v4
with:
name: musllinux-artifacts
path: ./wheelhouse/*.whl
build_macosx_wheels:
name: Build wheels on macosx
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.16.5
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: "*macosx*"
# CIBW_SKIP: cp36* cp37* pp*
CIBW_SKIP: cp36* cp37* cp38* cp39* cp310* cp311* pp*
CIBW_BUILD_VERBOSITY: 3
CIBW_BEFORE_BUILD: pip install -U pybind11-global && brew install libomp
CIBW_BEFORE_TEST: pip install -U -r test_requirements.txt
CIBW_TEST_COMMAND: pytest --skip_gha {package}/tests
- uses: actions/upload-artifact@v4
with:
name: macosx-artifacts
path: ./wheelhouse/*.whl
merge_wheels:
name: Merge wheels
needs: [build_many_wheels, build_musl_wheels, build_macosx_wheels]
runs-on: ubuntu-latest
steps:
- name: Merge wheels
uses: actions/upload-artifact/merge@v4
with:
name: wheels
pattern: "*-artifacts"