Skip to content

Commit

Permalink
ci: build multiple Python versions in parallel
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
indygreg committed Nov 16, 2024
1 parent c7695f6 commit 74a9dc0
Show file tree
Hide file tree
Showing 2 changed files with 137 additions and 641 deletions.
38 changes: 3 additions & 35 deletions .github/workflows/apple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: MacOS Python build

on:
push:
branches: [main]
branches: [ main ]
pull_request:

concurrency:
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
build:
- target_triple: 'aarch64-apple-darwin'
runner: macos-14
py: 'cpython-3.9'
py: 'all'
options: 'debug'
- target_triple: 'aarch64-apple-darwin'
runner: macos-14
Expand All @@ -55,10 +55,6 @@ jobs:
py: 'cpython-3.9'
options: 'pgo+lto'

- target_triple: 'aarch64-apple-darwin'
runner: macos-14
py: 'cpython-3.10'
options: 'debug'
- target_triple: 'aarch64-apple-darwin'
runner: macos-14
py: 'cpython-3.10'
Expand All @@ -68,10 +64,6 @@ jobs:
py: 'cpython-3.10'
options: 'pgo+lto'

- target_triple: 'aarch64-apple-darwin'
runner: macos-14
py: 'cpython-3.11'
options: 'debug'
- target_triple: 'aarch64-apple-darwin'
runner: macos-14
py: 'cpython-3.11'
Expand All @@ -81,10 +73,6 @@ jobs:
py: 'cpython-3.11'
options: 'pgo+lto'

- target_triple: 'aarch64-apple-darwin'
runner: macos-14
py: 'cpython-3.12'
options: 'debug'
- target_triple: 'aarch64-apple-darwin'
runner: macos-14
py: 'cpython-3.12'
Expand All @@ -94,10 +82,6 @@ jobs:
py: 'cpython-3.12'
options: 'pgo+lto'

- target_triple: 'aarch64-apple-darwin'
runner: macos-14
py: 'cpython-3.13'
options: 'debug'
- target_triple: 'aarch64-apple-darwin'
runner: macos-14
py: 'cpython-3.13'
Expand Down Expand Up @@ -125,7 +109,7 @@ jobs:
# or LTO builds.
- target_triple: 'x86_64-apple-darwin'
runner: macos-13
py: 'cpython-3.9'
py: 'all'
options: 'debug'
- target_triple: 'x86_64-apple-darwin'
runner: macos-13
Expand All @@ -136,10 +120,6 @@ jobs:
py: 'cpython-3.9'
options: 'pgo+lto'

- target_triple: 'x86_64-apple-darwin'
runner: macos-13
py: 'cpython-3.10'
options: 'debug'
- target_triple: 'x86_64-apple-darwin'
runner: macos-13
py: 'cpython-3.10'
Expand All @@ -149,10 +129,6 @@ jobs:
py: 'cpython-3.10'
options: 'pgo+lto'

- target_triple: 'x86_64-apple-darwin'
runner: macos-13
py: 'cpython-3.11'
options: 'debug'
- target_triple: 'x86_64-apple-darwin'
runner: macos-13
py: 'cpython-3.11'
Expand All @@ -162,10 +138,6 @@ jobs:
py: 'cpython-3.11'
options: 'pgo+lto'

- target_triple: 'x86_64-apple-darwin'
runner: macos-13
py: 'cpython-3.12'
options: 'debug'
- target_triple: 'x86_64-apple-darwin'
runner: macos-13
py: 'cpython-3.12'
Expand All @@ -175,10 +147,6 @@ jobs:
py: 'cpython-3.12'
options: 'pgo+lto'

- target_triple: 'x86_64-apple-darwin'
runner: macos-13
py: 'cpython-3.13'
options: 'debug'
- target_triple: 'x86_64-apple-darwin'
runner: macos-13
py: 'cpython-3.13'
Expand Down
Loading

0 comments on commit 74a9dc0

Please sign in to comment.