Skip to content

Commit 5f567be

Browse files
committed
Use env.pythonLocaton
1 parent cb28594 commit 5f567be

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,8 @@ jobs:
1818
- run: cmake . -G "Visual Studio 17 2022" -Bcpp_build
1919
- run: cmake --build cpp_build --config Release
2020
- run: cpp_build\Release\ExternalLibraryTest.exe
21-
- run: where python
22-
- run: which python
2321
- run: |
24-
$python_exe = where python
25-
$python_exe = $python_exe -replace "\\", "/"
22+
$python_exe = "${{ env.pythonLocation }}/python.exe" -replace "\\", "/"
2623
cmake . -G "Visual Studio 17 2022" -B python_build -D EXTERNAL_LANGUAGE=Python -D PYTHON_EXE="$python_exe"
2724
- run: cmake --build python_build --config Release
2825
- run: python -m pip install -e Python

0 commit comments

Comments
 (0)