Skip to content

Commit 76cdbd9

Browse files
committed
ci: build multiple Python versions in parallel
Our build system supports this now. So update CI to make use of the feature. On Linux, 3.13 freethreaded builds are still their own CI job. We may need to tweak `build-main.py` to allow intelligently selecting freethreaded compatible versions. We could potentially also allow building freethreaded in parallel with non-freethreaded. This can be done as a followup.
1 parent 91ff2d3 commit 76cdbd9

File tree

2 files changed

+137
-641
lines changed

2 files changed

+137
-641
lines changed

Diff for: .github/workflows/apple.yml

+3-35
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: MacOS Python build
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [ main ]
66
pull_request:
77

88
concurrency:
@@ -44,7 +44,7 @@ jobs:
4444
build:
4545
- target_triple: 'aarch64-apple-darwin'
4646
runner: macos-14
47-
py: 'cpython-3.9'
47+
py: 'all'
4848
options: 'debug'
4949
- target_triple: 'aarch64-apple-darwin'
5050
runner: macos-14
@@ -55,10 +55,6 @@ jobs:
5555
py: 'cpython-3.9'
5656
options: 'pgo+lto'
5757

58-
- target_triple: 'aarch64-apple-darwin'
59-
runner: macos-14
60-
py: 'cpython-3.10'
61-
options: 'debug'
6258
- target_triple: 'aarch64-apple-darwin'
6359
runner: macos-14
6460
py: 'cpython-3.10'
@@ -68,10 +64,6 @@ jobs:
6864
py: 'cpython-3.10'
6965
options: 'pgo+lto'
7066

71-
- target_triple: 'aarch64-apple-darwin'
72-
runner: macos-14
73-
py: 'cpython-3.11'
74-
options: 'debug'
7567
- target_triple: 'aarch64-apple-darwin'
7668
runner: macos-14
7769
py: 'cpython-3.11'
@@ -81,10 +73,6 @@ jobs:
8173
py: 'cpython-3.11'
8274
options: 'pgo+lto'
8375

84-
- target_triple: 'aarch64-apple-darwin'
85-
runner: macos-14
86-
py: 'cpython-3.12'
87-
options: 'debug'
8876
- target_triple: 'aarch64-apple-darwin'
8977
runner: macos-14
9078
py: 'cpython-3.12'
@@ -94,10 +82,6 @@ jobs:
9482
py: 'cpython-3.12'
9583
options: 'pgo+lto'
9684

97-
- target_triple: 'aarch64-apple-darwin'
98-
runner: macos-14
99-
py: 'cpython-3.13'
100-
options: 'debug'
10185
- target_triple: 'aarch64-apple-darwin'
10286
runner: macos-14
10387
py: 'cpython-3.13'
@@ -125,7 +109,7 @@ jobs:
125109
# or LTO builds.
126110
- target_triple: 'x86_64-apple-darwin'
127111
runner: macos-13
128-
py: 'cpython-3.9'
112+
py: 'all'
129113
options: 'debug'
130114
- target_triple: 'x86_64-apple-darwin'
131115
runner: macos-13
@@ -136,10 +120,6 @@ jobs:
136120
py: 'cpython-3.9'
137121
options: 'pgo+lto'
138122

139-
- target_triple: 'x86_64-apple-darwin'
140-
runner: macos-13
141-
py: 'cpython-3.10'
142-
options: 'debug'
143123
- target_triple: 'x86_64-apple-darwin'
144124
runner: macos-13
145125
py: 'cpython-3.10'
@@ -149,10 +129,6 @@ jobs:
149129
py: 'cpython-3.10'
150130
options: 'pgo+lto'
151131

152-
- target_triple: 'x86_64-apple-darwin'
153-
runner: macos-13
154-
py: 'cpython-3.11'
155-
options: 'debug'
156132
- target_triple: 'x86_64-apple-darwin'
157133
runner: macos-13
158134
py: 'cpython-3.11'
@@ -162,10 +138,6 @@ jobs:
162138
py: 'cpython-3.11'
163139
options: 'pgo+lto'
164140

165-
- target_triple: 'x86_64-apple-darwin'
166-
runner: macos-13
167-
py: 'cpython-3.12'
168-
options: 'debug'
169141
- target_triple: 'x86_64-apple-darwin'
170142
runner: macos-13
171143
py: 'cpython-3.12'
@@ -175,10 +147,6 @@ jobs:
175147
py: 'cpython-3.12'
176148
options: 'pgo+lto'
177149

178-
- target_triple: 'x86_64-apple-darwin'
179-
runner: macos-13
180-
py: 'cpython-3.13'
181-
options: 'debug'
182150
- target_triple: 'x86_64-apple-darwin'
183151
runner: macos-13
184152
py: 'cpython-3.13'

0 commit comments

Comments
 (0)