mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
actions: pin win to python 3.11.6
This commit is contained in:
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@@ -342,7 +342,12 @@ jobs:
|
|||||||
cd "${GITHUB_WORKSPACE}/src"
|
cd "${GITHUB_WORKSPACE}/src"
|
||||||
git clone https://github.com/python/cpython.git
|
git clone https://github.com/python/cpython.git
|
||||||
cd "${PYTHON_SOURCE_PATH}"
|
cd "${PYTHON_SOURCE_PATH}"
|
||||||
|
# Pin Windows to 3.11.6 for the moment
|
||||||
|
if [[ "${RUNNER_OS}" == "Windows" ]]; then
|
||||||
|
export LATEST_STABLE_TAG="v3.11.6"
|
||||||
|
else
|
||||||
export LATEST_STABLE_TAG=$(git tag --list | grep -v a | grep -v rc | grep -v b | sort -Vr | head -n1)
|
export LATEST_STABLE_TAG=$(git tag --list | grep -v a | grep -v rc | grep -v b | sort -Vr | head -n1)
|
||||||
|
fi
|
||||||
git checkout "${LATEST_STABLE_TAG}"
|
git checkout "${LATEST_STABLE_TAG}"
|
||||||
export COMPILED_PYTHON_VERSION=${LATEST_STABLE_TAG:1} # Trim the "v" prefix
|
export COMPILED_PYTHON_VERSION=${LATEST_STABLE_TAG:1} # Trim the "v" prefix
|
||||||
echo "COMPILED_PYTHON_VERSION=${COMPILED_PYTHON_VERSION}" >> $GITHUB_ENV
|
echo "COMPILED_PYTHON_VERSION=${COMPILED_PYTHON_VERSION}" >> $GITHUB_ENV
|
||||||
@@ -480,7 +485,7 @@ jobs:
|
|||||||
cd pyinstaller
|
cd pyinstaller
|
||||||
export latest_release=$(git tag --list | grep -v dev | grep -v rc | sort -Vr | head -n1)
|
export latest_release=$(git tag --list | grep -v dev | grep -v rc | sort -Vr | head -n1)
|
||||||
#V6.0.0 causes errors on staticx
|
#V6.0.0 causes errors on staticx
|
||||||
if ([ "${staticx}" == "yes" ] || [ "${RUNNER_OS}" == "macOS" ]); then
|
if [[ "${staticx}" == "yes" ]]); then
|
||||||
git checkout "v5.13.2"
|
git checkout "v5.13.2"
|
||||||
else
|
else
|
||||||
git checkout "${latest_release}"
|
git checkout "${latest_release}"
|
||||||
|
|||||||
Reference in New Issue
Block a user