Skip to content

Commit

Permalink
Set PYTHON_HOME environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
t-sommer committed Nov 28, 2023
1 parent 5f9cace commit 193d1d8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,12 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: where python
- run: gci env:* | sort-object name
- run: echo "${{ env.Python_ROOT_DIR }}"
- run: dir C:\hostedtoolcache\windows\Python\3.10.11\x64
- run: python -m pip install -e Python
- run: cmake --version
- run: cmake . -G "Visual Studio 17 2022" -Bcpp_build
- run: cmake --build cpp_build --config Release
- run: cpp_build\Release\ExternalLibraryTest.exe
- run: cmake . -G "Visual Studio 17 2022" -Bpython_build -DEXTERNAL_LANGUAGE=Python -DPYTHON_HOME="C:/hostedtoolcache/windows/Python/3.10.11/x64"
- run: $env:PYTHON_HOME = "${{ env.Python_ROOT_DIR }}" -replace "\\", "/"
- run: cmake . -G "Visual Studio 17 2022" -Bpython_build -DEXTERNAL_LANGUAGE=Python -DPYTHON_HOME="$env:PYTHON_HOME"
- run: cmake --build python_build --config Release
- run: python -m pip install -e Python
- run: python_build\Release\ExternalLibraryTest.exe

0 comments on commit 193d1d8

Please sign in to comment.