mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-120111: Don't use cirrus M1 macOS runners on fork (#120116)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
eeb8f67f83
commit
fd104dfcb8
2 changed files with 14 additions and 5 deletions
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
|
@ -199,8 +199,9 @@ jobs:
|
||||||
uses: ./.github/workflows/reusable-macos.yml
|
uses: ./.github/workflows/reusable-macos.yml
|
||||||
with:
|
with:
|
||||||
config_hash: ${{ needs.check_source.outputs.config_hash }}
|
config_hash: ${{ needs.check_source.outputs.config_hash }}
|
||||||
# Cirrus is M1, macos-13 is default GHA Intel
|
# Cirrus and macos-14 are M1, macos-13 is default GHA Intel.
|
||||||
os-matrix: '["ghcr.io/cirruslabs/macos-runner:sonoma", "macos-13"]'
|
# Cirrus used for upstream, macos-14 for forks.
|
||||||
|
os-matrix: '["ghcr.io/cirruslabs/macos-runner:sonoma", "macos-14", "macos-13"]'
|
||||||
|
|
||||||
build_macos_free_threading:
|
build_macos_free_threading:
|
||||||
name: 'macOS (free-threading)'
|
name: 'macOS (free-threading)'
|
||||||
|
@ -210,8 +211,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
config_hash: ${{ needs.check_source.outputs.config_hash }}
|
config_hash: ${{ needs.check_source.outputs.config_hash }}
|
||||||
free-threading: true
|
free-threading: true
|
||||||
# Cirrus is M1
|
# Cirrus and macos-14 are M1.
|
||||||
os-matrix: '["ghcr.io/cirruslabs/macos-runner:sonoma"]'
|
# Cirrus used for upstream, macos-14 for forks.
|
||||||
|
os-matrix: '["ghcr.io/cirruslabs/macos-runner:sonoma", "macos-14"]'
|
||||||
|
|
||||||
build_ubuntu:
|
build_ubuntu:
|
||||||
name: 'Ubuntu'
|
name: 'Ubuntu'
|
||||||
|
|
9
.github/workflows/reusable-macos.yml
vendored
9
.github/workflows/reusable-macos.yml
vendored
|
@ -14,7 +14,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_macos:
|
build_macos:
|
||||||
name: 'build and test'
|
name: build and test (${{ matrix.os }})
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
env:
|
env:
|
||||||
HOMEBREW_NO_ANALYTICS: 1
|
HOMEBREW_NO_ANALYTICS: 1
|
||||||
|
@ -27,6 +27,13 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: ${{fromJson(inputs.os-matrix)}}
|
os: ${{fromJson(inputs.os-matrix)}}
|
||||||
|
is-fork:
|
||||||
|
- ${{ github.repository_owner != 'python' }}
|
||||||
|
exclude:
|
||||||
|
- os: "ghcr.io/cirruslabs/macos-runner:sonoma"
|
||||||
|
is-fork: true
|
||||||
|
- os: "macos-14"
|
||||||
|
is-fork: false
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue