srctree

Robin Linden parent b042ccda 8b7806d8
ci: Fix clang-tidy job using the wrong version of clang-tidy

Since we switched to running clang-tidy using Bazel, clang-tidy has beentaken from the path, and the default GitHub Actions runner already has aclang-tidy (as clang-tidy-14) on the $PATH.

inlinesplit
.github/workflows/ci.yaml added: 6, removed: 2, total 4
@@ -235,7 +235,11 @@ jobs:
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-15 main"
- run: sudo apt-get update && sudo apt-get install --no-install-recommends clang-tidy-15
- run: echo "CC=clang-15" >>$GITHUB_ENV && echo "CXX=clang++-15" >>$GITHUB_ENV
- run: clang-tidy --version
- run: |
sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-15 100
sudo update-alternatives --set clang-tidy /usr/bin/clang-tidy-15
update-alternatives --query clang-tidy
clang-tidy --version
- run: bazel build ... --config clang-tidy --keep_going
 
buildifier: