Skip to content

Commit 5c1aac9

Browse files
committed
Run clang-format in CI
1 parent f9b386a commit 5c1aac9

File tree

3 files changed

+440
-0
lines changed

3 files changed

+440
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ jobs:
2323
msbuild:
2424
uses: ./.github/workflows/msbuild.yml
2525

26+
format:
27+
uses: ./.github/workflows/clang-format.yml

.github/workflows/clang-format.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: clang-format
2+
3+
on:
4+
push:
5+
branches: [ development ]
6+
pull_request:
7+
branches: [ development ]
8+
9+
jobs:
10+
clang-format:
11+
runs-on: ubuntu-latest
12+
name: Format sources
13+
14+
steps:
15+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-python@v3
18+
19+
- name: Install dependencies
20+
run: sudo apt-get install -y clang-format
21+
22+
- name: Run clang-format
23+
run: |
24+
./run-clang-format.py -r Source Data/Base.rte/Shaders \
25+
--exclude Source/System/Base64 \
26+
--exclude Source/System/BitMask \
27+
--exclude Source/System/glad \
28+
--exclude Source/System/MicroPather \
29+
--exclude Source/System/Semver200 \
30+
--exclude Source/System/StackWalker

0 commit comments

Comments
 (0)