Skip to content

Commit d17e9dc

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 c5e974c commit d17e9dc

File tree

2 files changed

+137
-641
lines changed

2 files changed

+137
-641
lines changed

.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:
@@ -47,7 +47,7 @@ jobs:
4747
build:
4848
- target_triple: 'aarch64-apple-darwin'
4949
runner: macos-14
50-
py: 'cpython-3.9'
50+
py: 'all'
5151
options: 'debug'
5252
- target_triple: 'aarch64-apple-darwin'
5353
runner: macos-14
@@ -58,10 +58,6 @@ jobs:
5858
py: 'cpython-3.9'
5959
options: 'pgo+lto'
6060

61-
- target_triple: 'aarch64-apple-darwin'
62-
runner: macos-14
63-
py: 'cpython-3.10'
64-
options: 'debug'
6561
- target_triple: 'aarch64-apple-darwin'
6662
runner: macos-14
6763
py: 'cpython-3.10'
@@ -71,10 +67,6 @@ jobs:
7167
py: 'cpython-3.10'
7268
options: 'pgo+lto'
7369

74-
- target_triple: 'aarch64-apple-darwin'
75-
runner: macos-14
76-
py: 'cpython-3.11'
77-
options: 'debug'
7870
- target_triple: 'aarch64-apple-darwin'
7971
runner: macos-14
8072
py: 'cpython-3.11'
@@ -84,10 +76,6 @@ jobs:
8476
py: 'cpython-3.11'
8577
options: 'pgo+lto'
8678

87-
- target_triple: 'aarch64-apple-darwin'
88-
runner: macos-14
89-
py: 'cpython-3.12'
90-
options: 'debug'
9179
- target_triple: 'aarch64-apple-darwin'
9280
runner: macos-14
9381
py: 'cpython-3.12'
@@ -97,10 +85,6 @@ jobs:
9785
py: 'cpython-3.12'
9886
options: 'pgo+lto'
9987

100-
- target_triple: 'aarch64-apple-darwin'
101-
runner: macos-14
102-
py: 'cpython-3.13'
103-
options: 'debug'
10488
- target_triple: 'aarch64-apple-darwin'
10589
runner: macos-14
10690
py: 'cpython-3.13'
@@ -128,7 +112,7 @@ jobs:
128112
# or LTO builds.
129113
- target_triple: 'x86_64-apple-darwin'
130114
runner: macos-13
131-
py: 'cpython-3.9'
115+
py: 'all'
132116
options: 'debug'
133117
- target_triple: 'x86_64-apple-darwin'
134118
runner: macos-13
@@ -139,10 +123,6 @@ jobs:
139123
py: 'cpython-3.9'
140124
options: 'pgo+lto'
141125

142-
- target_triple: 'x86_64-apple-darwin'
143-
runner: macos-13
144-
py: 'cpython-3.10'
145-
options: 'debug'
146126
- target_triple: 'x86_64-apple-darwin'
147127
runner: macos-13
148128
py: 'cpython-3.10'
@@ -152,10 +132,6 @@ jobs:
152132
py: 'cpython-3.10'
153133
options: 'pgo+lto'
154134

155-
- target_triple: 'x86_64-apple-darwin'
156-
runner: macos-13
157-
py: 'cpython-3.11'
158-
options: 'debug'
159135
- target_triple: 'x86_64-apple-darwin'
160136
runner: macos-13
161137
py: 'cpython-3.11'
@@ -165,10 +141,6 @@ jobs:
165141
py: 'cpython-3.11'
166142
options: 'pgo+lto'
167143

168-
- target_triple: 'x86_64-apple-darwin'
169-
runner: macos-13
170-
py: 'cpython-3.12'
171-
options: 'debug'
172144
- target_triple: 'x86_64-apple-darwin'
173145
runner: macos-13
174146
py: 'cpython-3.12'
@@ -178,10 +150,6 @@ jobs:
178150
py: 'cpython-3.12'
179151
options: 'pgo+lto'
180152

181-
- target_triple: 'x86_64-apple-darwin'
182-
runner: macos-13
183-
py: 'cpython-3.13'
184-
options: 'debug'
185153
- target_triple: 'x86_64-apple-darwin'
186154
runner: macos-13
187155
py: 'cpython-3.13'

0 commit comments

Comments
 (0)