Skip to content

Commit

Permalink
CI: add Clang 15
Browse files Browse the repository at this point in the history
We have to use the PPA provided by LLVM because Clang 15 isn't
officially part of Ubuntu 22.04 (or any other Ubuntu release yet),
see https://apt.llvm.org/ for details.

Signed-off-by: Sam James <[email protected]>

Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Hugo Landau <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from openssl#19450)
  • Loading branch information
thesamesam authored and t8m committed Oct 21, 2022
1 parent bd19999 commit 75ecda9
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/compiler-zoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ jobs:
}, {
cc: clang-14,
distro: ubuntu-22.04
}, {
cc: clang-15,
distro: ubuntu-22.04,
llvm-ppa-name: jammy
}
]
# We set per-compiler now to allow testing with both older and newer sets
Expand All @@ -72,8 +76,29 @@ jobs:
steps:
- name: install packages
run: |
llvm_ppa_name="${{ matrix.zoo.llvm-ppa-name }}"
# In the Matrix above, we set llvm-ppa-name if an LLVM version isn't
# part of the Ubuntu version we're using. See https://apt.llvm.org/.
if [[ -n ${llvm_ppa_name} ]] ; then
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key |\
gpg --dearmor |\
sudo tee /usr/share/keyrings/llvm-snapshot.gpg.key > /dev/null
clang_version="${{ matrix.zoo.cc }}"
clang_version="${clang_version/clang-}"
echo "deb [signed-by=/usr/share/keyrings/llvm-snapshot.gpg.key] http://apt.llvm.org/${{ matrix.zoo.llvm-ppa-name }}/ llvm-toolchain-${{ matrix.zoo.llvm-ppa-name }}-${clang_version} main" \
| sudo tee /etc/apt/sources.list.d/llvm.list
echo "deb-src [signed-by=/usr/share/keyrings/llvm-snapshot.gpg.key] http://apt.llvm.org/${{ matrix.zoo.llvm-ppa-name }}/ llvm-toolchain-${{ matrix.zoo.llvm-ppa-name }}-${clang_version} main" \
| sudo tee -a /etc/apt/sources.list.d/llvm.list
cat /etc/apt/sources.list.d/llvm.list
fi
sudo apt-get update
sudo apt-get -yq --force-yes install ${{ matrix.zoo.cc }}
sudo apt-get -y install ${{ matrix.zoo.cc }}
- uses: actions/checkout@v2

- name: config
Expand Down

0 comments on commit 75ecda9

Please sign in to comment.