@@ -41,128 +41,181 @@ jobs:
41
41
fail-fast : false
42
42
matrix :
43
43
build :
44
- # macOS on Apple hardware. Can't do PGO because GitHub Apple hardware
45
- # is Intel.
46
44
- target_triple : ' aarch64-apple-darwin'
45
+ runner : macos-14
47
46
py : ' cpython-3.8'
48
47
optimizations : ' debug'
49
48
- target_triple : ' aarch64-apple-darwin'
49
+ runner : macos-14
50
50
py : ' cpython-3.8'
51
- optimizations : ' noopt '
51
+ optimizations : ' lto '
52
52
- target_triple : ' aarch64-apple-darwin'
53
+ runner : macos-14
53
54
py : ' cpython-3.8'
54
- optimizations : ' lto'
55
+ optimizations : ' pgo'
56
+ - target_triple : ' aarch64-apple-darwin'
57
+ runner : macos-14
58
+ py : ' cpython-3.8'
59
+ optimizations : ' pgo+lto'
55
60
56
61
- target_triple : ' aarch64-apple-darwin'
62
+ runner : macos-14
57
63
py : ' cpython-3.9'
58
64
optimizations : ' debug'
59
65
- target_triple : ' aarch64-apple-darwin'
66
+ runner : macos-14
60
67
py : ' cpython-3.9'
61
- optimizations : ' noopt '
68
+ optimizations : ' lto '
62
69
- target_triple : ' aarch64-apple-darwin'
70
+ runner : macos-14
63
71
py : ' cpython-3.9'
64
- optimizations : ' lto'
72
+ optimizations : ' pgo'
73
+ - target_triple : ' aarch64-apple-darwin'
74
+ runner : macos-14
75
+ py : ' cpython-3.9'
76
+ optimizations : ' pgo+lto'
65
77
66
78
- target_triple : ' aarch64-apple-darwin'
79
+ runner : macos-14
67
80
py : ' cpython-3.10'
68
81
optimizations : ' debug'
69
82
- target_triple : ' aarch64-apple-darwin'
83
+ runner : macos-14
84
+ py : ' cpython-3.10'
85
+ optimizations : ' lto'
86
+ - target_triple : ' aarch64-apple-darwin'
87
+ runner : macos-14
70
88
py : ' cpython-3.10'
71
- optimizations : ' noopt '
89
+ optimizations : ' pgo '
72
90
- target_triple : ' aarch64-apple-darwin'
91
+ runner : macos-14
73
92
py : ' cpython-3.10'
74
- optimizations : ' lto'
93
+ optimizations : ' pgo+ lto'
75
94
76
95
- target_triple : ' aarch64-apple-darwin'
96
+ runner : macos-14
77
97
py : ' cpython-3.11'
78
98
optimizations : ' debug'
79
99
- target_triple : ' aarch64-apple-darwin'
100
+ runner : macos-14
80
101
py : ' cpython-3.11'
81
- optimizations : ' noopt '
102
+ optimizations : ' lto '
82
103
- target_triple : ' aarch64-apple-darwin'
104
+ runner : macos-14
83
105
py : ' cpython-3.11'
84
- optimizations : ' lto'
106
+ optimizations : ' pgo'
107
+ - target_triple : ' aarch64-apple-darwin'
108
+ runner : macos-14
109
+ py : ' cpython-3.11'
110
+ optimizations : ' pgo+lto'
85
111
86
112
- target_triple : ' aarch64-apple-darwin'
113
+ runner : macos-14
87
114
py : ' cpython-3.12'
88
115
optimizations : ' debug'
89
116
- target_triple : ' aarch64-apple-darwin'
117
+ runner : macos-14
90
118
py : ' cpython-3.12'
91
- optimizations : ' noopt '
119
+ optimizations : ' lto '
92
120
- target_triple : ' aarch64-apple-darwin'
121
+ runner : macos-14
93
122
py : ' cpython-3.12'
94
- optimizations : ' lto'
123
+ optimizations : ' pgo'
124
+ - target_triple : ' aarch64-apple-darwin'
125
+ runner : macos-14
126
+ py : ' cpython-3.12'
127
+ optimizations : ' pgo+lto'
95
128
96
129
# macOS on Intel hardware. This is pretty straightforward. We exclude
97
130
# noopt because it doesn't provide any compelling advantages over PGO
98
131
# or LTO builds.
99
132
- target_triple : ' x86_64-apple-darwin'
133
+ runner : macos-11
100
134
py : ' cpython-3.8'
101
135
optimizations : ' debug'
102
136
- target_triple : ' x86_64-apple-darwin'
137
+ runner : macos-11
103
138
py : ' cpython-3.8'
104
139
optimizations : ' lto'
105
140
- target_triple : ' x86_64-apple-darwin'
141
+ runner : macos-11
106
142
py : ' cpython-3.8'
107
143
optimizations : ' pgo'
108
144
- target_triple : ' x86_64-apple-darwin'
145
+ runner : macos-11
109
146
py : ' cpython-3.8'
110
147
optimizations : ' pgo+lto'
111
148
112
149
- target_triple : ' x86_64-apple-darwin'
150
+ runner : macos-11
113
151
py : ' cpython-3.9'
114
152
optimizations : ' debug'
115
153
- target_triple : ' x86_64-apple-darwin'
154
+ runner : macos-11
116
155
py : ' cpython-3.9'
117
156
optimizations : ' lto'
118
157
- target_triple : ' x86_64-apple-darwin'
158
+ runner : macos-11
119
159
py : ' cpython-3.9'
120
160
optimizations : ' pgo'
121
161
- target_triple : ' x86_64-apple-darwin'
162
+ runner : macos-11
122
163
py : ' cpython-3.9'
123
164
optimizations : ' pgo+lto'
124
165
125
166
- target_triple : ' x86_64-apple-darwin'
167
+ runner : macos-11
126
168
py : ' cpython-3.10'
127
169
optimizations : ' debug'
128
170
- target_triple : ' x86_64-apple-darwin'
171
+ runner : macos-11
129
172
py : ' cpython-3.10'
130
173
optimizations : ' lto'
131
174
- target_triple : ' x86_64-apple-darwin'
175
+ runner : macos-11
132
176
py : ' cpython-3.10'
133
177
optimizations : ' pgo'
134
178
- target_triple : ' x86_64-apple-darwin'
179
+ runner : macos-11
135
180
py : ' cpython-3.10'
136
181
optimizations : ' pgo+lto'
137
182
138
183
- target_triple : ' x86_64-apple-darwin'
184
+ runner : macos-11
139
185
py : ' cpython-3.11'
140
186
optimizations : ' debug'
141
187
- target_triple : ' x86_64-apple-darwin'
188
+ runner : macos-11
142
189
py : ' cpython-3.11'
143
190
optimizations : ' lto'
144
191
- target_triple : ' x86_64-apple-darwin'
192
+ runner : macos-11
145
193
py : ' cpython-3.11'
146
194
optimizations : ' pgo'
147
195
- target_triple : ' x86_64-apple-darwin'
196
+ runner : macos-11
148
197
py : ' cpython-3.11'
149
198
optimizations : ' pgo+lto'
150
199
151
200
- target_triple : ' x86_64-apple-darwin'
201
+ runner : macos-11
152
202
py : ' cpython-3.12'
153
203
optimizations : ' debug'
154
204
- target_triple : ' x86_64-apple-darwin'
205
+ runner : macos-11
155
206
py : ' cpython-3.12'
156
207
optimizations : ' lto'
157
208
- target_triple : ' x86_64-apple-darwin'
209
+ runner : macos-11
158
210
py : ' cpython-3.12'
159
211
optimizations : ' pgo'
160
212
- target_triple : ' x86_64-apple-darwin'
213
+ runner : macos-11
161
214
py : ' cpython-3.12'
162
215
optimizations : ' pgo+lto'
163
216
needs :
164
217
- pythonbuild
165
- runs-on : ' macos-11 '
218
+ runs-on : ${{ matrix.build.runner }}
166
219
steps :
167
220
- uses : actions/checkout@v4
168
221
with :
@@ -181,10 +234,8 @@ jobs:
181
234
182
235
- name : Build
183
236
run : |
184
- export APPLE_HOST_SDK_PATH=/Applications/Xcode_12.5.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk
185
-
186
237
if [ "${{ matrix.build.target_triple }}" = "aarch64-apple-darwin" ]; then
187
- export APPLE_SDK_PATH=/Applications/Xcode_12.5.1. app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3 .sdk
238
+ export APPLE_SDK_PATH=/Applications/Xcode_15.2. app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2 .sdk
188
239
elif [ "${{ matrix.build.target_triple }}" = "x86_64-apple-darwin" ]; then
189
240
export APPLE_SDK_PATH=/Applications/Xcode_12.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
190
241
else
@@ -210,8 +261,4 @@ jobs:
210
261
run : |
211
262
chmod +x build/pythonbuild
212
263
213
- if [ "${{matrix.build.target_triple }}" = "x86_64-apple-darwin" ]; then
214
- EXTRA_ARGS="--run"
215
- fi
216
-
217
- build/pythonbuild validate-distribution --macos-sdks-path macosx-sdks ${EXTRA_ARGS} dist/*.tar.zst
264
+ build/pythonbuild validate-distribution --macos-sdks-path macosx-sdks --run dist/*.tar.zst
0 commit comments