Skip to content

Commit fe38288

Browse files
ci: clang-format
Signed-off-by: romintomasetti <romin.tomasetti@gmail.com>
1 parent 1a21827 commit fe38288

File tree

2 files changed

+24
-17
lines changed

2 files changed

+24
-17
lines changed

.github/workflows/style.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request:
6+
branches:
7+
- main
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
clang-format:
15+
runs-on: ubuntu-latest
16+
container:
17+
image: silkeh/clang:21@sha256:1901d77a39a463f27463f0b0c69441ed5c8ad18cbcf33ccf37283c27e807739f
18+
permissions:
19+
contents: read
20+
steps:
21+
- run: apt update && apt --yes --no-install-recommends install git
22+
- uses: actions/checkout@v6
23+
- run: |
24+
git ls-files *.hpp *.h *.cpp *.c | xargs clang-format-21 --dry-run --Werror

.github/workflows/test-clang-format.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)