@@ -57,19 +57,30 @@ jobs:
57
57
- run : echo '::add-matcher::.github/problem-matchers/msvc.json'
58
58
if : startsWith(matrix.os, 'windows-')
59
59
60
- - run : pip install pipx
61
- if : startsWith(matrix.os, 'macos-')
62
-
63
60
- uses : pypa/cibuildwheel@v2.16.2
61
+ if : matrix.os != 'macos-13-xlarge'
64
62
with :
65
63
output-dir : dist
66
64
env :
67
65
CIBW_BUILD : cp3${{ matrix.minor }}-*
68
66
CIBW_ARCHS_WINDOWS : x86 AMD64
69
- CIBW_ARCHS_MACOS : x86_64 arm64
67
+ CIBW_ARCHS_MACOS : x86_64
70
68
CIBW_BEFORE_BUILD : pip install -r {project}/requirements-build-3_08.txt
71
69
CIBW_BEFORE_TEST : pip install -r {project}/requirements-dev-3_08.txt
72
70
CIBW_TEST_COMMAND : pytest {project}
71
+
72
+ - run : pip install pipx
73
+ if : matrix.os == 'macos-13-xlarge'
74
+ - uses : pypa/cibuildwheel@v2.16.2
75
+ if : matrix.os == 'macos-13-xlarge'
76
+ with :
77
+ output-dir : dist
78
+ env :
79
+ CIBW_BUILD : cp3${{ matrix.minor }}-macosx_arm64
80
+ CIBW_BEFORE_BUILD : pip install -r {project}/requirements-build-3_08.txt
81
+ CIBW_BEFORE_TEST : pip install -r {project}/requirements-dev-3_08.txt
82
+ CIBW_TEST_COMMAND : pytest {project}/test
83
+
73
84
- uses : actions/upload-artifact@v3
74
85
with :
75
86
name : dist
@@ -92,19 +103,30 @@ jobs:
92
103
- run : echo '::add-matcher::.github/problem-matchers/msvc.json'
93
104
if : startsWith(matrix.os, 'windows-')
94
105
95
- - run : pip install pipx
96
- if : startsWith(matrix.os, 'macos-')
97
-
98
106
- uses : pypa/cibuildwheel@v2.16.2
107
+ if : matrix.os != 'macos-13-xlarge'
99
108
with :
100
109
output-dir : dist
101
110
env :
102
111
CIBW_BUILD : cp3${{ matrix.minor }}-*
103
112
CIBW_ARCHS_WINDOWS : x86 AMD64
104
- CIBW_ARCHS_MACOS : x86_64 arm64
113
+ CIBW_ARCHS_MACOS : x86_64
105
114
CIBW_BEFORE_BUILD : pip install -r {project}/requirements-build-3_11.txt
106
115
CIBW_BEFORE_TEST : pip install -r {project}/requirements-dev-3_11.txt
107
116
CIBW_TEST_COMMAND : pytest {project}
117
+
118
+ - run : pip install pipx
119
+ if : matrix.os == 'macos-13-xlarge'
120
+ - uses : pypa/cibuildwheel@v2.16.2
121
+ if : matrix.os == 'macos-13-xlarge'
122
+ with :
123
+ output-dir : dist
124
+ env :
125
+ CIBW_BUILD : cp3${{ matrix.minor }}-macosx_arm64
126
+ CIBW_BEFORE_BUILD : pip install -r {project}/requirements-build-3_11.txt
127
+ CIBW_BEFORE_TEST : pip install -r {project}/requirements-dev-3_11.txt
128
+ CIBW_TEST_COMMAND : pytest {project}/test
129
+
108
130
- uses : actions/upload-artifact@v3
109
131
with :
110
132
name : dist
@@ -131,12 +153,13 @@ jobs:
131
153
if : startsWith(matrix.os, 'macos-')
132
154
133
155
- uses : pypa/cibuildwheel@v2.16.2
156
+ if : matrix.os != 'macos-13-xlarge'
134
157
with :
135
158
output-dir : dist
136
159
env :
137
160
CIBW_BUILD : cp3${{ matrix.minor }}-*
138
161
CIBW_ARCHS_WINDOWS : x86 AMD64
139
- CIBW_ARCHS_MACOS : x86_64 arm64
162
+ CIBW_ARCHS_MACOS : x86_64
140
163
CIBW_BEFORE_BUILD : pip install -r {project}/requirements-build-3_12.txt
141
164
CIBW_BEFORE_TEST : pip install -r {project}/requirements-dev-3_12.txt
142
165
CIBW_TEST_COMMAND : pytest {project}
@@ -145,6 +168,18 @@ jobs:
145
168
name : dist
146
169
path : dist
147
170
171
+ - run : pip install pipx
172
+ if : matrix.os == 'macos-13-xlarge'
173
+ - uses : pypa/cibuildwheel@v2.16.2
174
+ if : matrix.os == 'macos-13-xlarge'
175
+ with :
176
+ output-dir : dist
177
+ env :
178
+ CIBW_BUILD : cp3${{ matrix.minor }}-macosx_arm64
179
+ CIBW_BEFORE_BUILD : pip install -r {project}/requirements-build-3_12.txt
180
+ CIBW_BEFORE_TEST : pip install -r {project}/requirements-dev-3_12.txt
181
+ CIBW_TEST_COMMAND : pytest {project}/test
182
+
148
183
upload :
149
184
name : Publish
150
185
if : github.event_name == 'release'
0 commit comments