diff options
author | Brad King <brad.king@kitware.com> | 2021-10-06 17:23:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-10-06 17:38:57 (GMT) |
commit | b5a59251cbd3cfdc00ffeb6d6d64af12a540c702 (patch) | |
tree | 1d55bfc37512eda2b30dd4feb36ca32d11d867da /.gitlab | |
parent | 6dd924563500c76b63fdb59d5b0ff3a65f45aaf2 (diff) | |
download | CMake-b5a59251cbd3cfdc00ffeb6d6d64af12a540c702.zip CMake-b5a59251cbd3cfdc00ffeb6d6d64af12a540c702.tar.gz CMake-b5a59251cbd3cfdc00ffeb6d6d64af12a540c702.tar.bz2 |
gitlab-ci: Try upstream ninja development branch in some nightly jobs
Diffstat (limited to '.gitlab')
-rwxr-xr-x | .gitlab/ci/ninja-nightly.sh | 11 | ||||
-rwxr-xr-x | .gitlab/ci/ninja.sh | 4 |
2 files changed, 15 insertions, 0 deletions
diff --git a/.gitlab/ci/ninja-nightly.sh b/.gitlab/ci/ninja-nightly.sh new file mode 100755 index 0000000..b78b64e --- /dev/null +++ b/.gitlab/ci/ninja-nightly.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +cd .gitlab + +git clone https://github.com/ninja-build/ninja.git ninja-src +cmake -S ninja-src -B ninja-src/build -DCMAKE_BUILD_TYPE=Release +cmake --build ninja-src/build --parallel --target ninja +mv ninja-src/build/ninja . +rm -rf ninja-src diff --git a/.gitlab/ci/ninja.sh b/.gitlab/ci/ninja.sh index 8ead670..866d1d5 100755 --- a/.gitlab/ci/ninja.sh +++ b/.gitlab/ci/ninja.sh @@ -2,6 +2,10 @@ set -e +if test "$CMAKE_CI_JOB_NIGHTLY_NINJA" = "true" -a "$CMAKE_CI_NIGHTLY" = "true"; then + exec .gitlab/ci/ninja-nightly.sh +fi + readonly version="1.10.2" baseurl="https://github.com/ninja-build/ninja/releases/download/v$version" |