From 7c6906dc834897e26d73655110be07687bffbb2d Mon Sep 17 00:00:00 2001 From: Alex Turner Date: Tue, 15 Oct 2024 04:37:57 -0700 Subject: [PATCH] Add python source build --- .github/actions/build-python-from-source/action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/actions/build-python-from-source/action.yml b/.github/actions/build-python-from-source/action.yml index 34bc189..2186b91 100644 --- a/.github/actions/build-python-from-source/action.yml +++ b/.github/actions/build-python-from-source/action.yml @@ -103,8 +103,10 @@ runs: if [ "${{ runner.os }}" != "Windows" ]; then echo "LOCAL_PYTHON=/usr/local/python-${{ inputs.python-version }}/bin/python3" >> $GITHUB_ENV else + # Find the Python executable and set LOCAL_PYTHON cwd=$(pwd) - echo "LOCAL_PYTHON=${cwd}/Python/${{ inputs.python-version }}/python3*_d.exe" >> $GITHUB_ENV + LOCAL_PYTHON=$(find "${cwd}/Python/${{ inputs.python-version }}" -name "python3*_d.exe") + echo "LOCAL_PYTHON=${LOCAL_PYTHON}" >> $GITHUB_ENV fi # Ensure python is in the path and log out the version to help with debug.