[llvm] [GitHub] Bump clang-tidy version to 21th and add sccache in CI (PR #160551)
Baranov Victor via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 24 09:08:48 PDT 2025
https://github.com/vbvictor created https://github.com/llvm/llvm-project/pull/160551
None
>From 1a060deb11a612b24205ae84e789dfcee05e6001 Mon Sep 17 00:00:00 2001
From: Victor Baranov <bar.victor.2002 at gmail.com>
Date: Wed, 24 Sep 2025 19:03:28 +0300
Subject: [PATCH] [GitHub] Bump clang-tidy version to 21th and add sccache in
CI
---
.github/workflows/pr-code-lint.yml | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/pr-code-lint.yml b/.github/workflows/pr-code-lint.yml
index bc70933147bd2..caa2a134c521d 100644
--- a/.github/workflows/pr-code-lint.yml
+++ b/.github/workflows/pr-code-lint.yml
@@ -19,8 +19,6 @@ jobs:
defaults:
run:
shell: bash
- container:
- image: 'ghcr.io/llvm/ci-ubuntu-24.04:latest'
timeout-minutes: 60
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@@ -47,10 +45,13 @@ jobs:
echo "Changed files:"
echo "$CHANGED_FILES"
+ # The clang tidy version should always be upgraded to the first version
+ # of a release cycle (x.1.0) or the last version of a release cycle, or
+ # if there have been relevant clang-format backports.
- name: Install clang-tidy
uses: aminya/setup-cpp at 17c11551771948abc5752bbf3183482567c7caf0 # v1.1.1
with:
- clang-tidy: 20.1.8
+ clang-tidy: 21.1.0
- name: Setup Python env
uses: actions/setup-python at 42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
@@ -59,6 +60,13 @@ jobs:
- name: Install Python dependencies
run: python3 -m pip install -r llvm/utils/git/requirements_linting.txt
+
+ - name: Setup ccache
+ uses: hendrikmuhs/ccache-action at a1209f81afb8c005c13b4296c32e363431bffea5 # v1.2.17
+ with:
+ max-size: 2G
+ key: premerge-clang-tidy
+ variant: sccache
# TODO: create special mapping for 'codegen' targets, for now build predefined set
# TODO: add entrypoint in 'compute_projects.py' that only adds a project and its direct dependencies
More information about the llvm-commits
mailing list