summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorCYFS <[email protected]>2026-10-30 18:20:46 +0800
committerGitHub <[email protected]>2026-10-30 18:20:46 +0800
commitcbc19778d0ae5ef2533a28c0f62c6a399858010a (patch)
tree6a7696817dcbf3b8101fa9dbdcd85f3e7996cfd2 /.github/workflows
parent506dbc6d6ae9b6abf5e7941bb322212b23d272c9 (diff)
[clang-format] Pin version 22.1.8 and format kernel sources (#11936)
* [clang-format] Pin formatter version to 22.1.8 * [clang-format] Adjust loop line breaks * [kernel] Format src with clang-format 22.1.8
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/format_check.yml2
-rw-r--r--.github/workflows/pr_clang_format.yml7
2 files changed, 7 insertions, 2 deletions
diff --git a/.github/workflows/format_check.yml b/.github/workflows/format_check.yml
index 9d7983b159..dd15a3edec 100644
--- a/.github/workflows/format_check.yml
+++ b/.github/workflows/format_check.yml
@@ -30,7 +30,7 @@ jobs:
- name: Install clang-format
shell: bash
run: |
- python -m pip install clang-format
+ python -m pip install -r tools/ci/requirements-format.txt
clang-format --version
- name: Check clang-format
diff --git a/.github/workflows/pr_clang_format.yml b/.github/workflows/pr_clang_format.yml
index b94ee51103..ad697e3a10 100644
--- a/.github/workflows/pr_clang_format.yml
+++ b/.github/workflows/pr_clang_format.yml
@@ -39,8 +39,13 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
lfs: false
+ - name: Set up Python
+ uses: actions/setup-python@v5
+ with:
+ python-version: '3.8'
+
- name: Install clang-format
- run: sudo apt-get update && sudo apt-get install -y clang-format
+ run: python -m pip install -r tools/ci/requirements-format.txt
- name: Check clang-format version
run: |