summaryrefslogtreecommitdiffstats
path: root/.gitlab
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-02-09 20:32:44 (GMT)
committerBrad King <brad.king@kitware.com>2024-02-09 20:54:40 (GMT)
commit4c51136b8c345adffc4052eb5bd70978d8bc903e (patch)
tree42aa159629da809b1034a72f3e41445913908e64 /.gitlab
parent9ba0a54554c15fe28ea0612c6e166ad114c87cda (diff)
downloadCMake-4c51136b8c345adffc4052eb5bd70978d8bc903e.zip
CMake-4c51136b8c345adffc4052eb5bd70978d8bc903e.tar.gz
CMake-4c51136b8c345adffc4052eb5bd70978d8bc903e.tar.bz2
ci: Enable TIClang test on Debian Clang jobs in nightly pipeline
Diffstat (limited to '.gitlab')
-rw-r--r--.gitlab/.gitignore1
-rw-r--r--.gitlab/ci/configure_debian12_makefiles_clang.cmake4
-rw-r--r--.gitlab/ci/configure_debian12_ninja_clang.cmake4
-rw-r--r--.gitlab/ci/env_debian12_makefiles_clang.sh4
-rw-r--r--.gitlab/ci/env_debian12_ninja_clang.sh4
-rw-r--r--.gitlab/ci/ticlang-env.sh2
-rwxr-xr-x.gitlab/ci/ticlang.sh28
7 files changed, 47 insertions, 0 deletions
diff --git a/.gitlab/.gitignore b/.gitlab/.gitignore
index b28fe32..d8efc1e 100644
--- a/.gitlab/.gitignore
+++ b/.gitlab/.gitignore
@@ -16,6 +16,7 @@
/python*
/qt*
/sccache*
+/ticlang
/unstable-jom*
/watcom
/wix*
diff --git a/.gitlab/ci/configure_debian12_makefiles_clang.cmake b/.gitlab/ci/configure_debian12_makefiles_clang.cmake
index 20863a2..69f1e7c 100644
--- a/.gitlab/ci/configure_debian12_makefiles_clang.cmake
+++ b/.gitlab/ci/configure_debian12_makefiles_clang.cmake
@@ -1 +1,5 @@
+if (NOT "$ENV{CMAKE_CI_NIGHTLY}" STREQUAL "")
+ set(CMake_TEST_TICLANG_TOOLCHAINS "$ENV{CI_PROJECT_DIR}/.gitlab/ticlang" CACHE PATH "")
+endif()
+
include("${CMAKE_CURRENT_LIST_DIR}/configure_external_test.cmake")
diff --git a/.gitlab/ci/configure_debian12_ninja_clang.cmake b/.gitlab/ci/configure_debian12_ninja_clang.cmake
index 20863a2..69f1e7c 100644
--- a/.gitlab/ci/configure_debian12_ninja_clang.cmake
+++ b/.gitlab/ci/configure_debian12_ninja_clang.cmake
@@ -1 +1,5 @@
+if (NOT "$ENV{CMAKE_CI_NIGHTLY}" STREQUAL "")
+ set(CMake_TEST_TICLANG_TOOLCHAINS "$ENV{CI_PROJECT_DIR}/.gitlab/ticlang" CACHE PATH "")
+endif()
+
include("${CMAKE_CURRENT_LIST_DIR}/configure_external_test.cmake")
diff --git a/.gitlab/ci/env_debian12_makefiles_clang.sh b/.gitlab/ci/env_debian12_makefiles_clang.sh
index eda7c1f..e46aa29 100644
--- a/.gitlab/ci/env_debian12_makefiles_clang.sh
+++ b/.gitlab/ci/env_debian12_makefiles_clang.sh
@@ -1,2 +1,6 @@
+if test "$CMAKE_CI_NIGHTLY" = "true"; then
+ source .gitlab/ci/ticlang-env.sh
+fi
+
export CC=/usr/bin/clang-15
export CXX=/usr/bin/clang++-15
diff --git a/.gitlab/ci/env_debian12_ninja_clang.sh b/.gitlab/ci/env_debian12_ninja_clang.sh
index eda7c1f..e46aa29 100644
--- a/.gitlab/ci/env_debian12_ninja_clang.sh
+++ b/.gitlab/ci/env_debian12_ninja_clang.sh
@@ -1,2 +1,6 @@
+if test "$CMAKE_CI_NIGHTLY" = "true"; then
+ source .gitlab/ci/ticlang-env.sh
+fi
+
export CC=/usr/bin/clang-15
export CXX=/usr/bin/clang++-15
diff --git a/.gitlab/ci/ticlang-env.sh b/.gitlab/ci/ticlang-env.sh
new file mode 100644
index 0000000..448c0d7
--- /dev/null
+++ b/.gitlab/ci/ticlang-env.sh
@@ -0,0 +1,2 @@
+.gitlab/ci/ticlang.sh
+.gitlab/ticlang/bin/tiarmclang --version
diff --git a/.gitlab/ci/ticlang.sh b/.gitlab/ci/ticlang.sh
new file mode 100755
index 0000000..66fa863
--- /dev/null
+++ b/.gitlab/ci/ticlang.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+set -e
+
+case "$(uname -s)-$(uname -m)" in
+ Linux-x86_64)
+ shatool="sha256sum"
+ sha256sum="c69ac58e403b82eac1c407cc67b35fab5d95c5d8db75b019095f9412aacff27d"
+ filename="ti_cgt_armllvm_3.2.1.LTS_linux-x64_installer.bin"
+ dirname="ti-cgt-armllvm_3.2.1.LTS"
+ ;;
+ *)
+ echo "Unrecognized platform $(uname -s)-$(uname -m)"
+ exit 1
+ ;;
+esac
+readonly shatool
+readonly sha256sum
+
+cd .gitlab
+
+echo "$sha256sum $filename" > ticlang.sha256sum
+curl -OL "https://cmake.org/files/dependencies/internal/$filename"
+$shatool --check ticlang.sha256sum
+chmod +x "$filename"
+"./$filename" --mode unattended --prefix .
+mv "$dirname" ticlang
+rm -f "$filename" ticlang.sha256sum