Export python binary in ENV to satisfy CMake

Use env var to force the python version
set python for Cmake and remove python cache
master
Beq 2023-12-29 02:08:42 +00:00
parent 549e7ff3c1
commit 5aa47877a2
1 changed files with 11 additions and 9 deletions

View File

@ -19,6 +19,7 @@ env:
fallback_platform: ${platform}
FS_RELEASE_CHAN: ${FS_RELEASE_TYPE}x64
FS_GRID: "GRID FLAGS NOT SET"
PYTHON:
jobs:
build_matrix:
@ -47,20 +48,18 @@ jobs:
- uses: actions/setup-python@v4
id: py311
with:
python-version: '3.11.6'
cache: 'pip'
python-version: '3.11'
- name: Install python requirements (windows only)
if: runner.os == 'Windows'
- name: Set PYTHON environment for CMake
run: |
python3 -m pip install -r requirements.txt --user
python -m pip install -r requirements.txt --user
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install python requirements (non-windows)
if: runner.os != 'Windows'
echo "PYTHON=${{ steps.py311.outputs.python-path }}" >> $GITHUB_ENV
shell: bash
- name: Install python requirements
run: |
python3 -m pip install -r requirements.txt
python -m pip install -r requirements.txt
# export the new python to the environment var $PYTHON
- name: Check python version
run: python -V
@ -322,6 +321,9 @@ jobs:
deploy:
runs-on: ubuntu-latest
needs: build_matrix
env:
FS_BUILD_WEBHOOK_URL:
FS_RELEASE_FOLDER:
if: always()
steps:
- name: Checkout files