mirror of
https://github.com/python/cpython
synced 2026-11-16 15:44:50 +03:00
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
name: Tail calling interpreter
|
|
on:
|
|
pull_request:
|
|
paths: &paths
|
|
- '.github/workflows/tail-call.yml'
|
|
- 'Python/bytecodes.c'
|
|
- 'Python/ceval.c'
|
|
- 'Python/ceval_macros.h'
|
|
- 'Python/generated_cases.c.h'
|
|
push:
|
|
paths: *paths
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
FORCE_COLOR: 1
|
|
LLVM_VERSION: 21
|
|
|
|
jobs:
|
|
linux:
|
|
name: ${{ matrix.target }}
|
|
runs-on: ${{ matrix.runner }}
|
|
timeout-minutes: 60
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- target: x86_64-unknown-linux-gnu/gcc
|
|
runner: ubuntu-26.04
|
|
configure_flags: --with-pydebug
|
|
- target: x86_64-unknown-linux-gnu/gcc-free-threading
|
|
runner: ubuntu-26.04
|
|
configure_flags: --disable-gil
|
|
- target: aarch64-unknown-linux-gnu/gcc
|
|
runner: ubuntu-26.04-arm
|
|
configure_flags: --with-pydebug
|
|
steps:
|
|
- uses: actions/checkout@v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- uses: actions/setup-python@v7.0.0
|
|
with:
|
|
python-version: '3.11'
|
|
- name: Build
|
|
run: |
|
|
# On ubuntu-26.04 image, clang is clang-21 by default
|
|
CC=clang-${{ env.LLVM_VERSION }} ./configure --with-tail-call-interp ${{ matrix.configure_flags }}
|
|
make all --jobs 4
|
|
- name: Test
|
|
run: |
|
|
./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
|