Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Python 3.13 #5

Closed
wants to merge 12 commits into from
221 changes: 126 additions & 95 deletions .github/workflows/apple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@ name: MacOS Python build

on:
push:
branches: [main]
pull_request:
schedule:
- cron: '13 11 * * *'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

jobs:
pythonbuild:
runs-on: 'macos-13'
runs-on: "macos-13"
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -43,138 +48,164 @@ jobs:
fail-fast: false
matrix:
build:
- target_triple: 'aarch64-apple-darwin'
- target_triple: "aarch64-apple-darwin"
runner: macos-14
py: "cpython-3.8"
optimizations: "debug"
- target_triple: "aarch64-apple-darwin"
runner: macos-14
py: "cpython-3.8"
optimizations: "pgo"
- target_triple: "aarch64-apple-darwin"
runner: macos-14
py: "cpython-3.8"
optimizations: "pgo+lto"

- target_triple: "aarch64-apple-darwin"
runner: macos-14
py: 'cpython-3.8'
optimizations: 'debug'
- target_triple: 'aarch64-apple-darwin'
py: "cpython-3.9"
optimizations: "debug"
- target_triple: "aarch64-apple-darwin"
runner: macos-14
py: 'cpython-3.8'
optimizations: 'pgo'
- target_triple: 'aarch64-apple-darwin'
py: "cpython-3.9"
optimizations: "pgo"
- target_triple: "aarch64-apple-darwin"
runner: macos-14
py: 'cpython-3.8'
optimizations: 'pgo+lto'
py: "cpython-3.9"
optimizations: "pgo+lto"

- target_triple: 'aarch64-apple-darwin'
- target_triple: "aarch64-apple-darwin"
runner: macos-14
py: 'cpython-3.9'
optimizations: 'debug'
- target_triple: 'aarch64-apple-darwin'
py: "cpython-3.10"
optimizations: "debug"
- target_triple: "aarch64-apple-darwin"
runner: macos-14
py: 'cpython-3.9'
optimizations: 'pgo'
- target_triple: 'aarch64-apple-darwin'
py: "cpython-3.10"
optimizations: "pgo"
- target_triple: "aarch64-apple-darwin"
runner: macos-14
py: 'cpython-3.9'
optimizations: 'pgo+lto'
py: "cpython-3.10"
optimizations: "pgo+lto"

- target_triple: 'aarch64-apple-darwin'
- target_triple: "aarch64-apple-darwin"
runner: macos-14
py: 'cpython-3.10'
optimizations: 'debug'
- target_triple: 'aarch64-apple-darwin'
py: "cpython-3.11"
optimizations: "debug"
- target_triple: "aarch64-apple-darwin"
runner: macos-14
py: 'cpython-3.10'
optimizations: 'pgo'
- target_triple: 'aarch64-apple-darwin'
py: "cpython-3.11"
optimizations: "pgo"
- target_triple: "aarch64-apple-darwin"
runner: macos-14
py: 'cpython-3.10'
optimizations: 'pgo+lto'
py: "cpython-3.11"
optimizations: "pgo+lto"

- target_triple: 'aarch64-apple-darwin'
- target_triple: "aarch64-apple-darwin"
runner: macos-14
py: 'cpython-3.11'
optimizations: 'debug'
- target_triple: 'aarch64-apple-darwin'
py: "cpython-3.12"
optimizations: "debug"
- target_triple: "aarch64-apple-darwin"
runner: macos-14
py: 'cpython-3.11'
optimizations: 'pgo'
- target_triple: 'aarch64-apple-darwin'
py: "cpython-3.12"
optimizations: "pgo"
- target_triple: "aarch64-apple-darwin"
runner: macos-14
py: 'cpython-3.11'
optimizations: 'pgo+lto'
py: "cpython-3.12"
optimizations: "pgo+lto"

- target_triple: 'aarch64-apple-darwin'
- target_triple: "aarch64-apple-darwin"
runner: macos-14
py: 'cpython-3.12'
optimizations: 'debug'
- target_triple: 'aarch64-apple-darwin'
py: "cpython-3.13"
optimizations: "debug"
- target_triple: "aarch64-apple-darwin"
runner: macos-14
py: 'cpython-3.12'
optimizations: 'pgo'
- target_triple: 'aarch64-apple-darwin'
py: "cpython-3.13"
optimizations: "pgo"
- target_triple: "aarch64-apple-darwin"
runner: macos-14
py: 'cpython-3.12'
optimizations: 'pgo+lto'
py: "cpython-3.13"
optimizations: "pgo+lto"

# macOS on Intel hardware. This is pretty straightforward. We exclude
# noopt because it doesn't provide any compelling advantages over PGO
# or LTO builds.
- target_triple: 'x86_64-apple-darwin'
- target_triple: "x86_64-apple-darwin"
runner: macos-13
py: "cpython-3.8"
optimizations: "debug"
- target_triple: "x86_64-apple-darwin"
runner: macos-13
py: "cpython-3.8"
optimizations: "pgo"
- target_triple: "x86_64-apple-darwin"
runner: macos-13
py: "cpython-3.8"
optimizations: "pgo+lto"

- target_triple: "x86_64-apple-darwin"
runner: macos-13
py: 'cpython-3.8'
optimizations: 'debug'
- target_triple: 'x86_64-apple-darwin'
py: "cpython-3.9"
optimizations: "debug"
- target_triple: "x86_64-apple-darwin"
runner: macos-13
py: 'cpython-3.8'
optimizations: 'pgo'
- target_triple: 'x86_64-apple-darwin'
py: "cpython-3.9"
optimizations: "pgo"
- target_triple: "x86_64-apple-darwin"
runner: macos-13
py: 'cpython-3.8'
optimizations: 'pgo+lto'
py: "cpython-3.9"
optimizations: "pgo+lto"

- target_triple: 'x86_64-apple-darwin'
- target_triple: "x86_64-apple-darwin"
runner: macos-13
py: 'cpython-3.9'
optimizations: 'debug'
- target_triple: 'x86_64-apple-darwin'
py: "cpython-3.10"
optimizations: "debug"
- target_triple: "x86_64-apple-darwin"
runner: macos-13
py: 'cpython-3.9'
optimizations: 'pgo'
- target_triple: 'x86_64-apple-darwin'
py: "cpython-3.10"
optimizations: "pgo"
- target_triple: "x86_64-apple-darwin"
runner: macos-13
py: 'cpython-3.9'
optimizations: 'pgo+lto'
py: "cpython-3.10"
optimizations: "pgo+lto"

- target_triple: 'x86_64-apple-darwin'
- target_triple: "x86_64-apple-darwin"
runner: macos-13
py: 'cpython-3.10'
optimizations: 'debug'
- target_triple: 'x86_64-apple-darwin'
py: "cpython-3.11"
optimizations: "debug"
- target_triple: "x86_64-apple-darwin"
runner: macos-13
py: 'cpython-3.10'
optimizations: 'pgo'
- target_triple: 'x86_64-apple-darwin'
py: "cpython-3.11"
optimizations: "pgo"
- target_triple: "x86_64-apple-darwin"
runner: macos-13
py: 'cpython-3.10'
optimizations: 'pgo+lto'
py: "cpython-3.11"
optimizations: "pgo+lto"

- target_triple: 'x86_64-apple-darwin'
- target_triple: "x86_64-apple-darwin"
runner: macos-13
py: 'cpython-3.11'
optimizations: 'debug'
- target_triple: 'x86_64-apple-darwin'
py: "cpython-3.12"
optimizations: "debug"
- target_triple: "x86_64-apple-darwin"
runner: macos-13
py: 'cpython-3.11'
optimizations: 'pgo'
- target_triple: 'x86_64-apple-darwin'
py: "cpython-3.12"
optimizations: "pgo"
- target_triple: "x86_64-apple-darwin"
runner: macos-13
py: 'cpython-3.11'
optimizations: 'pgo+lto'
py: "cpython-3.12"
optimizations: "pgo+lto"

- target_triple: 'x86_64-apple-darwin'
- target_triple: "x86_64-apple-darwin"
runner: macos-13
py: 'cpython-3.12'
optimizations: 'debug'
- target_triple: 'x86_64-apple-darwin'
py: "cpython-3.13"
optimizations: "debug"
- target_triple: "x86_64-apple-darwin"
runner: macos-13
py: 'cpython-3.12'
optimizations: 'pgo'
- target_triple: 'x86_64-apple-darwin'
py: "cpython-3.13"
optimizations: "pgo"
- target_triple: "x86_64-apple-darwin"
runner: macos-13
py: 'cpython-3.12'
optimizations: 'pgo+lto'
py: "cpython-3.13"
optimizations: "pgo+lto"
needs:
- pythonbuild
runs-on: ${{ matrix.build.runner }}
Expand All @@ -186,7 +217,7 @@ jobs:
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: "3.11"

- name: Download pythonbuild
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -215,7 +246,7 @@ jobs:

- uses: actions/checkout@v4
with:
repository: 'phracker/MacOSX-SDKs'
repository: "phracker/MacOSX-SDKs"
ref: master
path: macosx-sdks

Expand Down
Loading
Loading