@@ -35,24 +35,38 @@ jobs:
35
35
name : Build wheels on ${{ matrix.os }}
36
36
runs-on : ${{ matrix.os }}
37
37
env :
38
- CIBW_ARCHS_MACOS : " x86_64 universal2 arm64"
39
- MACOSX_DEPLOYMENT_TARGET : " 10.12"
40
- CIBW_BEFORE_BUILD_WINDOWS : >-
41
- pip install certifi delvewheel oldest-supported-numpy &&
38
+ CIBW_SKIP : " *-musllinux*"
39
+ CIBW_BEFORE_BUILD : >-
40
+ pip install certifi oldest-supported-numpy &&
42
41
git clean -fxd build
43
- CIBW_REPAIR_WHEEL_COMMAND_WINDOWS : >-
44
- delvewheel repair -w {dest_dir} {wheel}
45
42
strategy :
46
43
matrix :
47
- os : [ubuntu-20.04, windows-latest, macos-11]
48
- cibw_archs : ["auto"]
49
44
include :
50
45
- os : ubuntu-20.04
51
- cibw_archs : " aarch64"
46
+ env :
47
+ CIBW_ARCHS : " x86_64"
48
+ CIBW_MANYLINUX_X86_64_IMAGE : manylinux2014
49
+ - os : ubuntu-20.04
50
+ env :
51
+ CIBW_ARCHS : " aarch64"
52
+ CIBW_MANYLINUX_X86_64_IMAGE : manylinux2014
53
+ - os : windows-latest
54
+ env :
55
+ CIBW_ARCHS : " auto"
56
+ CIBW_BEFORE_BUILD_WINDOWS : >-
57
+ pip install certifi delvewheel oldest-supported-numpy &&
58
+ git clean -fxd build
59
+ CIBW_REPAIR_WHEEL_COMMAND_WINDOWS : >-
60
+ delvewheel repair -w {dest_dir} {wheel}
61
+ MPL_DISABLE_FH4 : " yes"
62
+ - os : macos-11
63
+ env :
64
+ CIBW_ARCHS : " x86_64 universal2 arm64"
65
+ MACOSX_DEPLOYMENT_TARGET : " 10.12"
52
66
53
67
steps :
54
68
- name : Set up QEMU
55
- if : matrix.cibw_archs == 'aarch64'
69
+ if : env.CIBW_ARCHS == 'aarch64'
56
70
uses : docker/setup-qemu-action@v2
57
71
with :
58
72
platforms : arm64
@@ -73,51 +87,22 @@ jobs:
73
87
74
88
env :
75
89
CIBW_BUILD : " cp311-*"
76
- CIBW_SKIP : " *-musllinux*"
77
- CIBW_MANYLINUX_X86_64_IMAGE : manylinux2014
78
- CIBW_MANYLINUX_I686_IMAGE : manylinux2014
79
- CIBW_BEFORE_BUILD : >-
80
- pip install certifi oldest-supported-numpy &&
81
- git clean -fxd build
82
- MPL_DISABLE_FH4 : " yes"
83
- CIBW_ARCHS : ${{ matrix.cibw_archs }}
84
90
85
91
- name : Build wheels for CPython 3.10
86
92
87
93
env :
88
94
CIBW_BUILD : " cp310-*"
89
- CIBW_SKIP : " *-musllinux*"
90
- CIBW_MANYLINUX_X86_64_IMAGE : manylinux2014
91
- CIBW_MANYLINUX_I686_IMAGE : manylinux2014
92
- CIBW_BEFORE_BUILD : >-
93
- pip install certifi oldest-supported-numpy &&
94
- git clean -fxd build
95
- MPL_DISABLE_FH4 : " yes"
96
- CIBW_ARCHS : ${{ matrix.cibw_archs }}
97
95
98
96
- name : Build wheels for CPython 3.9
99
97
100
98
env :
101
99
CIBW_BUILD : " cp39-*"
102
- CIBW_SKIP : " *-musllinux*"
103
- CIBW_MANYLINUX_X86_64_IMAGE : manylinux2014
104
- CIBW_MANYLINUX_I686_IMAGE : manylinux2014
105
- CIBW_BEFORE_BUILD : >-
106
- pip install certifi oldest-supported-numpy &&
107
- git clean -fxd build
108
- MPL_DISABLE_FH4 : " yes"
109
- CIBW_ARCHS : ${{ matrix.cibw_archs }}
110
100
111
101
- name : Build wheels for PyPy
112
102
113
103
env :
114
104
CIBW_BUILD : " pp39-*"
115
- CIBW_SKIP : " *-musllinux*"
116
- CIBW_BEFORE_BUILD : >-
117
- pip install certifi oldest-supported-numpy &&
118
- git clean -fxd build
119
- CIBW_ARCHS : ${{ matrix.cibw_archs }}
120
- if : matrix.cibw_archs != 'aarch64'
105
+ if : env.CIBW_ARCHS != 'aarch64'
121
106
122
107
- name : Validate that LICENSE files are included in wheels
123
108
run : |
0 commit comments