mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
ci: Factor out scripts to add ninja to job environment
This commit is contained in:
3
.gitlab/ci/ninja-env.sh
Normal file
3
.gitlab/ci/ninja-env.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
.gitlab/ci/ninja.sh
|
||||
export PATH=$PWD/.gitlab:$PATH
|
||||
ninja --version
|
||||
@@ -512,9 +512,7 @@
|
||||
.before_script_linux: &before_script_linux
|
||||
- source .gitlab/ci/env.sh
|
||||
- source .gitlab/ci/cmake-env.sh
|
||||
- .gitlab/ci/ninja.sh
|
||||
- export PATH=$PWD/.gitlab:$PATH
|
||||
- ninja --version
|
||||
- source .gitlab/ci/ninja-env.sh
|
||||
|
||||
.cmake_prep_source_linux:
|
||||
stage: prep
|
||||
|
||||
@@ -176,9 +176,7 @@
|
||||
.before_script_macos: &before_script_macos
|
||||
- source .gitlab/ci/env.sh
|
||||
- source .gitlab/ci/cmake-env.sh
|
||||
- .gitlab/ci/ninja.sh
|
||||
- export PATH=$PWD/.gitlab:$PATH
|
||||
- ninja --version
|
||||
- source .gitlab/ci/ninja-env.sh
|
||||
# Download Qt
|
||||
- cmake -P .gitlab/ci/download_qt.cmake
|
||||
- export CMAKE_PREFIX_PATH=$PWD/.gitlab/qt${CMAKE_PREFIX_PATH:+:$CMAKE_PREFIX_PATH}
|
||||
|
||||
Reference in New Issue
Block a user