Skip to content

Commit 0a13cc7

Browse files
committed
Re-use the main macOS workflow for tail-calling
1 parent d54c2d8 commit 0a13cc7

2 files changed

Lines changed: 9 additions & 22 deletions

File tree

‎.github/workflows/reusable-macos.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
description: OS to run the job
1212
required: true
1313
type: string
14+
tail-call-interp:
15+
required: false
16+
type: boolean
17+
default: false
1418

1519
permissions:
1620
contents: read
@@ -51,6 +55,7 @@ jobs:
5155
--enable-slower-safety \
5256
--enable-safety \
5357
${{ inputs.free-threading && '--disable-gil' || '' }} \
58+
${{ inputs.tail-call-interp && '--with-tail-call-interp' || '' }} \
5459
--prefix=/opt/python-dev \
5560
--with-openssl="$(brew --prefix openssl@3.5)"
5661
- name: Build CPython

‎.github/workflows/tail-call.yml‎

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,10 @@ env:
2525
jobs:
2626
macos:
2727
name: aarch64-apple-darwin/clang
28-
runs-on: macos-26
29-
timeout-minutes: 60
30-
steps:
31-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
32-
with:
33-
persist-credentials: false
34-
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
35-
with:
36-
python-version: '3.11'
37-
- name: Install dependencies
38-
run: |
39-
brew update
40-
brew install llvm@${{ env.LLVM_VERSION }}
41-
- name: Build
42-
run: |
43-
export SDKROOT="$(xcrun --show-sdk-path)"
44-
export PATH="/opt/homebrew/opt/llvm@${{ env.LLVM_VERSION }}/bin:$PATH"
45-
CC=clang-${{ env.LLVM_VERSION }} ./configure --with-tail-call-interp
46-
make all --jobs 4
47-
- name: Test
48-
run: |
49-
./python.exe -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
28+
uses: ./.github/workflows/reusable-macos.yml
29+
with:
30+
os: macos-26
31+
tail-call-interp: true
5032

5133
linux:
5234
name: ${{ matrix.target }}

0 commit comments

Comments
 (0)