Skip to content

Commit e53bf9b

Browse files
podborskiy-guyon
authored andcommitted
try fixing clang format thing
1 parent 4402df5 commit e53bf9b

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/clang-format.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,15 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
10-
- name: Run clang-format style check for C/C++ programs.
11-
uses: jidicula/clang-format-action@v4.16.0
12-
with:
13-
clang-format-version: '21'
14-
check-path: 'IsoLib/libisomediafile'
10+
11+
- name: Install clang-format
12+
run: |
13+
wget https://apt.llvm.org/llvm.sh
14+
chmod +x llvm.sh
15+
sudo ./llvm.sh 18
16+
sudo apt-get install -y clang-format-18
17+
18+
- name: Run clang-format check
19+
run: |
20+
find IsoLib/libisomediafile \( -name "*.h" -o -name "*.cpp" -o -name "*.c" \) | \
21+
xargs clang-format-18 --dry-run --Werror -style=file

0 commit comments

Comments
 (0)