1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00
Files
mariadb-columnstore-engine/build/install_clang_deb.sh
Aleksei Bukhalov aa3db28074 MCOL-6071 drone refactor (#3641)
* chore(ci): MCOL-6071 less sccache granularity

* chore(ci): MCOL-6071 clean old versions of .deb/.rpm files in s3 when publishing

* chore(ci): MCOL-6071 fix unittests execution

* install sccache after deps, to have curl

* chore(ci) MCOL-6071 review fixes

---------

Co-authored-by: Leonid Fedorov <leonid.fedorov@mariadb.com>
2025-07-09 14:20:21 +04:00

29 lines
524 B
Bash
Executable File

#!/bin/bash
set -eo pipefail
SCRIPT_LOCATION=$(dirname "$0")
source "$SCRIPT_LOCATION"/utils.sh
CLANG_VERSION="$1"
if [[ $# -ne 1 ]]; then
echo "Please pass clang-version as a first parameter"
exit 1
fi
change_ubuntu_mirror us
message "Installing clang-${CLANG_VERSION}"
retry_eval 5 apt-get clean && apt-get update && apt-get install -y wget curl lsb-release software-properties-common gnupg
wget https://apt.llvm.org/llvm.sh
bash llvm.sh $CLANG_VERSION
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++