Skip to content

Commit e62da29

Browse files
authored
Merge pull request #1953 from stonebig/master
retry
2 parents ed12a0f + 6a6b76f commit e62da29

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/github_workflows_build-2026_01.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ jobs:
7878
formats: { zip: false, 7z: true, exe: true }
7979
PANDOC: "1"
8080
WINPYARCHDET: "64F"
81+
# Use the workflow input as the single python_versionf matrix value
8182
python_versionf: [ ${{ github.event.inputs.python_versionf }} ]
8283
include:
8384
# Configuration for 3.13
@@ -107,13 +108,10 @@ jobs:
107108

108109
env:
109110
PYTHON_VERSIONF: ${{ github.event.inputs.python_versionf }}
110-
PYTHON_VERSION: ${{ replace(matrix.python_versionf, 'F', '') }}
111-
detected_arch: ${{ contains(matrix.python_versionf, 'F') && '64F' || '64' }}
112111
WINPYFLAVOR: ${{ matrix.flavor.name }}
113112
PANDOC: ${{ matrix.flavor.PANDOC }}
114113
WINPYARCHDET: ${{ matrix.flavor.WINPYARCHDET }}
115114
WINPYVER2: ${{ matrix.ver2 }}
116-
build_location: WPy64-${{ replace(matrix.ver2, '.', '') }}
117115

118116
steps:
119117
- name: Checkout repository
@@ -124,12 +122,22 @@ jobs:
124122
run: |
125123
PYTHON_VERSION="${{ env.PYTHON_VERSION }}"
126124
WINPYARCHDET="${{ env.WINPYARCHDET }}"
127-
detected_arch="${{ env.detected_arch }}"
125+
# Compute detected arch from the input (3.14F -> 64F)
126+
detected_arch="64"
127+
if [[ "$PYTHON_VERSIONF" == *F ]]; then
128+
detected_arch="64F"
129+
fi
128130
WINPYVER2="${{ env.WINPYVER2 }}"
131+
132+
PYTHON_VERSION="${PYTHON_VERSIONF%F}" # remove trailing F if present
133+
echo "PYTHON_VERSION=$PYTHON_VERSION" >> $GITHUB_ENV
129134
130135
WINPYVERSION=${PYTHON_VERSION//./}
131136
echo "WINPYVERSION=$WINPYVERSION" >> $GITHUB_ENV
132137
138+
BUILD_LOCATION="WPy64-${WINPYVER2//./}"
139+
echo "build_location=$BUILD_LOCATION" >> $GITHUB_ENV
140+
133141
# Populate generic per-flavor / per-version selections
134142
if [ "$PYTHON_VERSION" = "3.13" ]; then
135143
echo "WINPYREQUIREMENTS=${{ matrix.flavor.REQUIREMENTS_313 }}" >> $GITHUB_ENV
@@ -144,7 +152,7 @@ jobs:
144152
145153
# write common flavor env vars
146154
echo "ARTIFACT_NAME=publish_${PYTHON_VERSION}${{ matrix.flavor.name }}" >> $GITHUB_ENV
147-
echo "destwheelhouse=${{ env.build_location }}\\wheelhouse\\included.wheels" >> $GITHUB_ENV
155+
echo "destwheelhouse=${BUILD_LOCATION}\\wheelhouse\\included.wheels" >> $GITHUB_ENV
148156
echo "WINPYVER=${WINPYVER2}${{ matrix.flavor.name }}${{ env.my_release_level }}" >> $GITHUB_ENV
149157
150158
- name: Download, verify and extract python standalone

0 commit comments

Comments
 (0)