ci: Factor out helper to load python into environment on Windows

This commit is contained in:
Brad King
2022-11-11 11:43:56 -05:00
parent 781303c0e2
commit 1ccffcf0ea
2 changed files with 5 additions and 3 deletions

4
.gitlab/ci/python-env.ps1 Executable file
View 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

View File

@@ -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