diff --git a/.github/workflows/build_viewer.yml b/.github/workflows/build_viewer.yml index 94d4fc3195..f0e980c678 100644 --- a/.github/workflows/build_viewer.yml +++ b/.github/workflows/build_viewer.yml @@ -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