Skip to content

Commit

Permalink
Update install-build-tools.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluemangoo authored Apr 29, 2024
1 parent 9861cb4 commit 156d318
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/install-build-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,18 +153,18 @@ if [ -n "${RING_COVERAGE-}" ]; then
use_clang=1
fi

case "${OSTYPE-}" in
linux*)
if [ -n "$use_clang" ]; then
ubuntu_codename=$(lsb_release --codename --short)
llvm_version=18
sudo apt-key add .github/workflows/llvm-snapshot.gpg.key
sudo add-apt-repository "deb http://apt.llvm.org/$ubuntu_codename/ llvm-toolchain-$ubuntu_codename-$llvm_version main"
sudo apt-get update
install_packages clang-$llvm_version llvm-$llvm_version
fi
;;
esac
# case "${OSTYPE-}" in
# linux*)
# if [ -n "$use_clang" ]; then
# ubuntu_codename=$(lsb_release --codename --short)
# llvm_version=18
# sudo apt-key add .github/workflows/llvm-snapshot.gpg.key
# sudo add-apt-repository "deb http://apt.llvm.org/$ubuntu_codename/ llvm-toolchain-$ubuntu_codename-$llvm_version main"
# sudo apt-get update
# install_packages clang-$llvm_version llvm-$llvm_version
# fi
# ;;
# esac

rustup toolchain install --no-self-update --profile=minimal ${toolchain}
if [ -n "${target-}" ]; then
Expand Down

0 comments on commit 156d318

Please sign in to comment.