File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,9 @@ jobs:
186186 - release : noble
187187 compiler_name : clang
188188 compiler_version : 20
189+ - release : noble
190+ compiler_name : clang
191+ compiler_version : 21
189192 runs-on : ubuntu-24.04
190193 needs :
191194 - build
Original file line number Diff line number Diff line change @@ -236,6 +236,13 @@ if [[ "${CLANG_VERSION}" -gt 20 ]]; then
236236 DISTRO_CODENAME=$(lsb_release -cs)
237237 echo "deb http://apt.llvm.org/${DISTRO_CODENAME}/ llvm-toolchain-${DISTRO_CODENAME}-${CLANG_VERSION} main" \
238238 | tee /etc/apt/sources.list.d/llvm.list
239+ apt-get update
240+ apt-get install -y --no-install-recommends --allow-unauthenticated \
241+ clang-tidy-${CLANG_VERSION}
242+ update-alternatives \
243+ --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-${CLANG_VERSION} 100
244+ update-alternatives \
245+ --install /usr/bin/run-clang-tidy run-clang-tidy /usr/bin/run-clang-tidy-${CLANG_VERSION} 100
239246 apt-get clean
240247 rm -rf /var/lib/apt/lists/*
241248fi
@@ -245,7 +252,6 @@ apt-get install -y --no-install-recommends --allow-unauthenticated \
245252 clang-${CLANG_VERSION} \
246253 libclang-rt-${CLANG_VERSION}-dev \
247254 llvm-${CLANG_VERSION} \
248- clang-tidy-${CLANG_VERSION} \
249255 gcc \
250256 g++
251257apt-get clean
@@ -259,10 +265,6 @@ update-alternatives \
259265 --slave /usr/bin/clang++ clang++ /usr/bin/clang++-${CLANG_VERSION}
260266update-alternatives \
261267 --install /usr/bin/llvm-cov llvm-cov /usr/bin/llvm-cov-${CLANG_VERSION} 100
262- update-alternatives \
263- --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-${CLANG_VERSION} 100
264- update-alternatives \
265- --install /usr/bin/run-clang-tidy run-clang-tidy /usr/bin/run-clang-tidy-${CLANG_VERSION} 100
266268update-alternatives --auto cc
267269update-alternatives --auto c++
268270update-alternatives --auto clang
You can’t perform that action at this time.
0 commit comments