Skip to content

Commit

Permalink
[ci] We do not need to special case llvm8 anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-penev authored and vgvassilev committed Oct 19, 2022
1 parent 3a4bea3 commit fb120e8
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -435,15 +435,13 @@ jobs:
- name: Setup Ubuntu apt sources
if: runner.os == 'Linux'
run: |
curl https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
os_codename="`cat /etc/os-release | grep UBUNTU_CODENAME | cut -d = -f 2`"
echo "deb https://apt.llvm.org/${os_codename}/ llvm-toolchain-${os_codename}-${{ matrix.clang-runtime }} main" | sudo tee -a /etc/apt/sources.list
sudo apt update
if [[ '${{ matrix.clang-runtime }}' == '8' ]]; then
sudo apt install llvm-${{ matrix.clang-runtime }}-dev clang-${{ matrix.clang-runtime }} libclang-${{ matrix.clang-runtime }}-dev
else # ==7, >=9
sudo apt install llvm-${{ matrix.clang-runtime }}-dev llvm-${{ matrix.clang-runtime }}-tools clang-${{ matrix.clang-runtime }} libclang-${{ matrix.clang-runtime }}-dev
if ! sudo apt install -y llvm-${{ matrix.clang-runtime }}-dev ; then
curl https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
os_codename="`cat /etc/os-release | grep UBUNTU_CODENAME | cut -d = -f 2`"
echo "deb https://apt.llvm.org/${os_codename}/ llvm-toolchain-${os_codename}-${{ matrix.clang-runtime }} main" | sudo tee -a /etc/apt/sources.list
sudo apt update
fi
sudo apt install llvm-${{ matrix.clang-runtime }}-dev llvm-${{ matrix.clang-runtime }}-tools clang-${{ matrix.clang-runtime }} libclang-${{ matrix.clang-runtime }}-dev
- name: Setup compiler on Linux
if: runner.os == 'Linux'
run: |
Expand Down

0 comments on commit fb120e8

Please sign in to comment.