Skip to content

Commit 21e4a6a

Browse files
authored
Merge pull request #32 from cortex-command-community/clang-format-17
Update CI clang-format to version 17
2 parents 33efdc0 + 81fcc9b commit 21e4a6a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/clang-format.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,15 @@ jobs:
3131
- uses: actions/setup-python@v3
3232

3333
- name: Install dependencies
34-
run: sudo apt-get install -y clang-format
34+
run: |
35+
mkdir bin
36+
wget https://github.com/muttleyxd/clang-tools-static-binaries/releases/download/master-8f72ab3c/clang-format-17_linux-amd64 -O bin/clang-format-17
37+
chmod +x bin/clang-format-17
3538
3639
- name: Run clang-format
3740
run: |
3841
.github/scripts/run-clang-format.py \
42+
--clang-format-executable bin/clang-format-17 \
3943
-i \
4044
-r Source Data/Base.rte/Shaders \
4145
--exclude Source/System/Base64 \
@@ -47,7 +51,8 @@ jobs:
4751
- name: Add missing newlines
4852
run: |
4953
.github/scripts/run-clang-format.py \
50-
-i --clang-format-executable .github/scripts/add-eol.sh \
54+
--clang-format-executable .github/scripts/add-eol.sh \
55+
-i \
5156
-r Source Data/Base.rte/Shaders \
5257
--exclude Source/System/Base64 \
5358
--exclude Source/System/BitMask \

0 commit comments

Comments
 (0)