Skip to content

Commit bd67113

Browse files
committed
Always build freethreaded for version >= 3.13
1 parent a8747fa commit bd67113

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/build-python.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ on:
77
description: "CPython git tag to build (e.g. v3.12.13, v3.15.0a7)"
88
required: true
99
type: string
10-
freethreaded:
11-
description: "Also build a --disable-gil variant (3.13+)"
12-
required: false
13-
default: false
14-
type: boolean
1510

1611
permissions:
1712
contents: write
@@ -81,9 +76,8 @@ jobs:
8176
echo "archive_base=python-${normalised}-linux-24.04-riscv64" >> "$GITHUB_OUTPUT"
8277
echo "Normalised version: ${normalised}"
8378
echo "Python X.Y: ${minor}"
84-
if [ "${{ inputs.freethreaded }}" = "true" ] && [ "${minor_num}" -lt 13 ]; then
85-
echo "ERROR: freethreaded build requires CPython 3.13+" >&2
86-
exit 1
79+
if [ "${minor_num}" -ge 13 ]; then
80+
echo "freethreaded=true" >> "$GITHUB_OUTPUT"
8781
fi
8882
8983
- name: Checkout CPython
@@ -122,7 +116,7 @@ jobs:
122116
rm -rf "${{ steps.vars.outputs.archive_base }}" staging-std
123117
124118
- name: Build free-threaded CPython
125-
if: ${{ inputs.freethreaded == true }}
119+
if: ${{ steps.vars.outputs.freethreaded }}
126120
run: |
127121
pushd src
128122
git clean -fdx

0 commit comments

Comments
 (0)