Skip to content

Commit

Permalink
apt update before install clang 17
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyu1994 committed Dec 19, 2023
1 parent 9e562ba commit 89e393f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .ci/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ else # Linux
software-properties-common || exit -1
if [[ $COMPILER == "clang" ]]; then
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
sudo apt-get update
sudo apt-add-repository deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main
sudo apt-add-repository deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main
sudo apt-get update
sudo apt-get install -y clang-17
sudo apt-get install --no-install-recommends -y libomp-dev
fi
Expand Down Expand Up @@ -120,11 +120,11 @@ else # Linux
software-properties-common
if [[ $COMPILER == "clang" ]]; then
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
sudo apt-get update
sudo apt-add-repository deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main
sudo apt-add-repository deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main
sudo apt-get install -y clang-17
sudo apt-get install --no-install-recommends -y libomp-dev
apt-add-repository deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main
apt-add-repository deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main
apt-get update
apt-get install -y clang-17
apt-get install --no-install-recommends -y libomp-dev
fi
curl -sL https://apt.kitware.com/keys/kitware-archive-latest.asc | apt-key add -
apt-add-repository "deb https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main" -y
Expand Down

0 comments on commit 89e393f

Please sign in to comment.