ci: Enable TIClang test on Debian Clang jobs in nightly pipeline
This commit is contained in:
parent
9ba0a54554
commit
4c51136b8c
1
.gitlab/.gitignore
vendored
1
.gitlab/.gitignore
vendored
@ -16,6 +16,7 @@
|
||||
/python*
|
||||
/qt*
|
||||
/sccache*
|
||||
/ticlang
|
||||
/unstable-jom*
|
||||
/watcom
|
||||
/wix*
|
||||
|
@ -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")
|
||||
|
@ -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")
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
2
.gitlab/ci/ticlang-env.sh
Normal file
2
.gitlab/ci/ticlang-env.sh
Normal file
@ -0,0 +1,2 @@
|
||||
.gitlab/ci/ticlang.sh
|
||||
.gitlab/ticlang/bin/tiarmclang --version
|
28
.gitlab/ci/ticlang.sh
Executable file
28
.gitlab/ci/ticlang.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user