Skip to content

Commit b40f272

Browse files
committed
build: Support clang-format-22
1 parent 8cf0fe9 commit b40f272

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

.github/workflows/clang-format-image.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
fail-fast: false
3232
matrix:
3333
version-pair:
34+
- {version: "22", ubuntu: "resolute"}
3435
- {version: "21", ubuntu: "questing"}
3536
- {version: "20", ubuntu: "questing"}
3637
- {version: "19", ubuntu: "questing"}

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
- 19
4242
- 20
4343
- 21
44+
- 22
4445
steps:
4546
- uses: actions/checkout@v6
4647
- name: Build and test the Docker image
@@ -71,6 +72,7 @@ jobs:
7172
- 19
7273
- 20
7374
- 21
75+
- 22
7476
path:
7577
- check: 'test/known_fail'
7678
exclude: 'capital'

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ You can define your own formatting rules in a `.clang-format` file at your repos
3030
* 19: `clang-format-19`
3131
* 20: `clang-format-20`
3232
* 21: `clang-format-21`
33+
* 22: `clang-format-22`
3334

3435
## Action version upgrade guarantee
3536

@@ -45,7 +46,7 @@ You can sponsor me [here](https://github.com/sponsors/jidicula)!
4546

4647
## Inputs
4748
* `clang-format-version` [optional]: The major version of `clang-format` that you want to run on your codebase.
48-
* Default: `21`
49+
* Default: `22`
4950
* Available versions: see [Versions supported](#major-versions-supported)
5051
* `check-path` [optional]: The path to the directory in the repo that should be checked for C/C++/Protobuf formatting.
5152
* Default: `.`

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ inputs:
99
clang-format-version:
1010
description: 'The major version of clang-format that you want to use.'
1111
required: false
12-
default: '21'
12+
default: '22'
1313
check-path:
1414
description: 'The path to the directory you want to check for correct C/C++/Protobuf formatting. Default is the full repository.'
1515
required: false

0 commit comments

Comments
 (0)