Skip to content

Commit d62f6c9

Browse files
authored
Merge pull request winpython#1956 from stonebig/master
claude repair
2 parents dc396e8 + 46c888d commit d62f6c9

File tree

1 file changed

+40
-36
lines changed

1 file changed

+40
-36
lines changed

.github/workflows/github_workflows_build-2026_01.yml

Lines changed: 40 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -79,53 +79,54 @@ jobs:
7979
formats: { zip: false, 7z: true, exe: true }
8080
PANDOC: "1"
8181
WINPYARCHDET: "64F"
82-
# Use the workflow input as the single python_versionf matrix value
83-
python_versionf: [ ${{ github.event.inputs.python_versionf }} ]
84-
include:
85-
# Configuration for 3.13
86-
- python_versionf: "3.13"
87-
ver2: "3.13.11.1"
88-
v_tag: "3_13_11_"
89-
src: "https://github.com/astral-sh/python-build-standalone/releases/download/20251205/cpython-3.13.11+20251205-x86_64-pc-windows-msvc-install_only_stripped.tar.gz"
90-
sha: "d8a2b5e05ef71fc71f048a6f409d69b940bc5d33da8b112611cfba68fc5b86c3"
91-
# Configuration for 3.14 (Standard)
92-
- python_versionf: "3.14"
93-
ver2: "3.14.2.1"
94-
v_tag: "3_14_2_"
95-
src: "https://github.com/astral-sh/python-build-standalone/releases/download/20251205/cpython-3.14.2+20251205-x86_64-pc-windows-msvc-install_only_stripped.tar.gz"
96-
sha: "512744d8a86dc6042a712035ada5d87c5e2ce4218f5dbdc74d039cee46e76fb4"
97-
# Configuration for 3.14F (Free-threading)
98-
- python_versionf: "3.14F"
99-
ver2: "3.14.2.1"
100-
v_tag: "3_14_2_"
101-
src: "https://github.com/astral-sh/python-build-standalone/releases/download/20251205/cpython-3.14.2+20251205-x86_64-pc-windows-msvc-freethreaded+pgo-full.tar.zst"
102-
sha: "536cf813857ea566fcfae18a1b7dbcd185385f1dc1f04d5a0951bad235c8fc61"
103-
# Configuration for 3.15
104-
- python_versionf: "3.15"
105-
ver2: "3.15.0.1"
106-
v_tag: "3_15_0_"
107-
src: "https://github.com/astral-sh/python-build-standalone/releases/download/20251217/cpython-3.15.0a3+20251217-x86_64-pc-windows-msvc-install_only_stripped.tar.gz"
108-
sha: "4cac37170050bb402eaabad84e7ceb4679ec8ffaf43fbea71d62651ca761dcd7"
109-
110-
# Keep job env minimal: avoid complex expression functions here (compute them in a step)
82+
11183
env:
112-
PYTHON_VERSIONF: ${{ matrix.python_versionf }}
84+
PYTHON_VERSIONF: ${{ github.event.inputs.python_versionf }}
11385
WINPYFLAVOR: ${{ matrix.flavor.name }}
11486
PANDOC: ${{ matrix.flavor.PANDOC }}
11587
WINPYARCHDET: ${{ matrix.flavor.WINPYARCHDET }}
116-
WINPYVER2: ${{ matrix.ver2 }}
11788

11889
steps:
11990
- name: Checkout repository
12091
uses: actions/checkout@v4
12192

93+
- name: Set Python version configuration
94+
id: python_config
95+
shell: bash
96+
run: |
97+
case "${{ github.event.inputs.python_versionf }}" in
98+
"3.13")
99+
echo "ver2=3.13.11.1" >> $GITHUB_OUTPUT
100+
echo "v_tag=3_13_11_" >> $GITHUB_OUTPUT
101+
echo "src=https://github.com/astral-sh/python-build-standalone/releases/download/20251205/cpython-3.13.11+20251205-x86_64-pc-windows-msvc-install_only_stripped.tar.gz" >> $GITHUB_OUTPUT
102+
echo "sha=d8a2b5e05ef71fc71f048a6f409d69b940bc5d33da8b112611cfba68fc5b86c3" >> $GITHUB_OUTPUT
103+
;;
104+
"3.14")
105+
echo "ver2=3.14.2.1" >> $GITHUB_OUTPUT
106+
echo "v_tag=3_14_2_" >> $GITHUB_OUTPUT
107+
echo "src=https://github.com/astral-sh/python-build-standalone/releases/download/20251205/cpython-3.14.2+20251205-x86_64-pc-windows-msvc-install_only_stripped.tar.gz" >> $GITHUB_OUTPUT
108+
echo "sha=512744d8a86dc6042a712035ada5d87c5e2ce4218f5dbdc74d039cee46e76fb4" >> $GITHUB_OUTPUT
109+
;;
110+
"3.14F")
111+
echo "ver2=3.14.2.1" >> $GITHUB_OUTPUT
112+
echo "v_tag=3_14_2_" >> $GITHUB_OUTPUT
113+
echo "src=https://github.com/astral-sh/python-build-standalone/releases/download/20251205/cpython-3.14.2+20251205-x86_64-pc-windows-msvc-freethreaded+pgo-full.tar.zst" >> $GITHUB_OUTPUT
114+
echo "sha=536cf813857ea566fcfae18a1b7dbcd185385f1dc1f04d5a0951bad235c8fc61" >> $GITHUB_OUTPUT
115+
;;
116+
"3.15")
117+
echo "ver2=3.15.0.1" >> $GITHUB_OUTPUT
118+
echo "v_tag=3_15_0_" >> $GITHUB_OUTPUT
119+
echo "src=https://github.com/astral-sh/python-build-standalone/releases/download/20251217/cpython-3.15.0a3+20251217-x86_64-pc-windows-msvc-install_only_stripped.tar.gz" >> $GITHUB_OUTPUT
120+
echo "sha=4cac37170050bb402eaabad84e7ceb4679ec8ffaf43fbea71d62651ca761dcd7" >> $GITHUB_OUTPUT
121+
;;
122+
esac
123+
122124
- name: Set static and matrix variables based on selected Python version
123125
shell: bash
124126
env:
125-
# pass the relevant matrix/job env values into the step
126127
PYTHON_VERSIONF: ${{ env.PYTHON_VERSIONF }}
127128
WINPYARCHDET: ${{ env.WINPYARCHDET }}
128-
WINPYVER2: ${{ env.WINPYVER2 }}
129+
WINPYVER2: ${{ steps.python_config.outputs.ver2 }}
129130
FLAVOR_NAME: ${{ matrix.flavor.name }}
130131
run: |
131132
PYTHON_VERSION="${PYTHON_VERSIONF%F}" # remove trailing F if present
@@ -162,12 +163,15 @@ jobs:
162163
WINPYVER="${WINPYVER2}${FLAVOR_NAME}${{ env.my_release_level }}"
163164
echo "WINPYVER=$WINPYVER" >> $GITHUB_ENV
164165
166+
# Store WINPYVER2 in env for later steps
167+
echo "WINPYVER2=$WINPYVER2" >> $GITHUB_ENV
168+
165169
- name: Download, verify and extract python standalone
166170
if: env.WINPYREQUIREMENTS != ''
167171
uses: ./.github/actions/python-setup
168172
with:
169-
python_source: ${{ matrix.src }}
170-
python_sha256: ${{ matrix.sha }}
173+
python_source: ${{ steps.python_config.outputs.src }}
174+
python_sha256: ${{ steps.python_config.outputs.sha }}
171175
build_location: ${{ env.build_location }}
172176

173177
- name: Download, checking hash and integrating pandoc binary
@@ -223,4 +227,4 @@ jobs:
223227
with:
224228
name: ${{ env.ARTIFACT_NAME }}
225229
path: publish_output
226-
retention-days: 66 # keeps artifact for 66 days
230+
retention-days: 66 # keeps artifact for 66 days

0 commit comments

Comments
 (0)