Skip to content
Merged

retry #1953

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions .github/workflows/github_workflows_build-2026_01.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jobs:
formats: { zip: false, 7z: true, exe: true }
PANDOC: "1"
WINPYARCHDET: "64F"
# Use the workflow input as the single python_versionf matrix value
python_versionf: [ ${{ github.event.inputs.python_versionf }} ]
include:
# Configuration for 3.13
Expand Down Expand Up @@ -107,13 +108,10 @@ jobs:

env:
PYTHON_VERSIONF: ${{ github.event.inputs.python_versionf }}
PYTHON_VERSION: ${{ replace(matrix.python_versionf, 'F', '') }}
detected_arch: ${{ contains(matrix.python_versionf, 'F') && '64F' || '64' }}
WINPYFLAVOR: ${{ matrix.flavor.name }}
PANDOC: ${{ matrix.flavor.PANDOC }}
WINPYARCHDET: ${{ matrix.flavor.WINPYARCHDET }}
WINPYVER2: ${{ matrix.ver2 }}
build_location: WPy64-${{ replace(matrix.ver2, '.', '') }}

steps:
- name: Checkout repository
Expand All @@ -124,12 +122,22 @@ jobs:
run: |
PYTHON_VERSION="${{ env.PYTHON_VERSION }}"
WINPYARCHDET="${{ env.WINPYARCHDET }}"
detected_arch="${{ env.detected_arch }}"
# Compute detected arch from the input (3.14F -> 64F)
detected_arch="64"
if [[ "$PYTHON_VERSIONF" == *F ]]; then
detected_arch="64F"
fi
WINPYVER2="${{ env.WINPYVER2 }}"

PYTHON_VERSION="${PYTHON_VERSIONF%F}" # remove trailing F if present
echo "PYTHON_VERSION=$PYTHON_VERSION" >> $GITHUB_ENV

WINPYVERSION=${PYTHON_VERSION//./}
echo "WINPYVERSION=$WINPYVERSION" >> $GITHUB_ENV

BUILD_LOCATION="WPy64-${WINPYVER2//./}"
echo "build_location=$BUILD_LOCATION" >> $GITHUB_ENV

# Populate generic per-flavor / per-version selections
if [ "$PYTHON_VERSION" = "3.13" ]; then
echo "WINPYREQUIREMENTS=${{ matrix.flavor.REQUIREMENTS_313 }}" >> $GITHUB_ENV
Expand All @@ -144,7 +152,7 @@ jobs:

# write common flavor env vars
echo "ARTIFACT_NAME=publish_${PYTHON_VERSION}${{ matrix.flavor.name }}" >> $GITHUB_ENV
echo "destwheelhouse=${{ env.build_location }}\\wheelhouse\\included.wheels" >> $GITHUB_ENV
echo "destwheelhouse=${BUILD_LOCATION}\\wheelhouse\\included.wheels" >> $GITHUB_ENV
echo "WINPYVER=${WINPYVER2}${{ matrix.flavor.name }}${{ env.my_release_level }}" >> $GITHUB_ENV

- name: Download, verify and extract python standalone
Expand Down