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

This commit is contained in:
Brad King
2022-11-11 11:40:37 -05:00
parent b0d16c7f74
commit 781303c0e2
2 changed files with 5 additions and 2 deletions

4
.gitlab/ci/qt-env.ps1 Executable file
View File

@@ -0,0 +1,4 @@
$pwdpath = $pwd.Path
cmake -P .gitlab/ci/download_qt.cmake
Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\qt\bin;$env:PATH"
qmake -v

View File

@@ -304,8 +304,7 @@
- . .gitlab/ci/ninja-env.ps1
- (& "$env:WIX\bin\light.exe" -help) | Select -First 1
- cmake --version
- cmake -P .gitlab/ci/download_qt.cmake
- Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\qt\bin;$env:PATH"
- . .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