diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 891dfcca2b..f291d370f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,17 +39,10 @@ jobs: submodules: recursive - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: 3.11 - - name: Locate Python Paths - run: | - echo "PYTHON_EXECUTABLE=$(which python)" >> $GITHUB_ENV - echo "PYTHON_INCLUDE_DIR=$(python -c 'import sysconfig; print(sysconfig.get_path(\"include\"))')" >> $GITHUB_ENV - echo "PYTHON_LIBRARY=$(python -c 'import sysconfig; print(sysconfig.get_config_var(\"LIBDIR\"))')/libpython3.11.so" >> $GITHUB_ENV - shell: bash - - name: Install dependencies run: | python -m pip install --upgrade pip @@ -90,9 +83,7 @@ jobs: -DCMAKE_SYSTEM_PREFIX_PATH=/usr \ -DOCC_INCLUDE_DIR=/usr/include/opencascade \ -DOCC_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu \ - -DPYTHON_EXECUTABLE:FILEPATH=${{ env.PYTHON_EXECUTABLE }} \ - -DPYTHON_INCLUDE_DIR:PATH=${{ env.PYTHON_INCLUDE_DIR }} \ - -DPYTHON_LIBRARY:FILEPATH=${{ env.PYTHON_LIBRARY }} \ + -DPython3_ROOT_DIR=$Python3_ROOT_DIR \ -DCOLLADA_SUPPORT=Off \ "-DSCHEMA_VERSIONS=2x3;4;4x3_add1" \ -DGLTF_SUPPORT=On \