From 91911b3e2fb79abcdca7d391cda70413b3509ecf Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Sat, 28 Feb 2026 13:59:22 +0100 Subject: [PATCH] ci: Update clang-format to version 21 Update the gh workflow to pin clang-format to version 21. Mention the version we use in CONTRIBUTING.md. And hint to the workflow file if we want to change it. --- .github/workflows/main.yml | 4 ++-- CONTRIBUTING.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3fe07592..cad944d6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -55,9 +55,9 @@ jobs: run: | grep -P 'auto_(char|gchar|gcharv|gerror|guchar|jid|sqlite|gfd|FILE)[\w *]*;$' -r src && exit -1 || true - name: Run clang-format - uses: jidicula/clang-format-action@v4.11.0 + uses: jidicula/clang-format-action@v4.15.0 with: - clang-format-version: '16' + clang-format-version: '21' check-path: 'src' spell-check: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b7a013b4..db17a260 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -63,7 +63,7 @@ We will then pull from your repository and merge manually. Follow the style already present ;-) To make this easier for you we created a `.clang-format` file. -You'll need to have `clang-format` installed. +You'll need to have `clang-format` installed. We currently use **version 21**, which is also the version enforced by our CI in `.github/workflows/main.yml`. Then just run `make format` before you do any commit.