mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
ci: Factor out helper to load python into environment on Windows
This commit is contained in:
4
.gitlab/ci/python-env.ps1
Executable file
4
.gitlab/ci/python-env.ps1
Executable file
@@ -0,0 +1,4 @@
|
||||
$pwdpath = $pwd.Path
|
||||
cmake -P .gitlab/ci/download_python3.cmake
|
||||
Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\python3;$env:PATH"
|
||||
python --version
|
||||
@@ -305,9 +305,7 @@
|
||||
- (& "$env:WIX\bin\light.exe" -help) | Select -First 1
|
||||
- cmake --version
|
||||
- . .gitlab/ci/qt-env.ps1
|
||||
- cmake -P .gitlab/ci/download_python3.cmake
|
||||
- Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\python3;$env:PATH"
|
||||
- python --version
|
||||
- . .gitlab/ci/python-env.ps1
|
||||
|
||||
.cmake_build_windows:
|
||||
stage: build
|
||||
|
||||
Reference in New Issue
Block a user