Skip to content

Commit 54fddab

Browse files
committed
CI: Use clang-format-12
and call clang-format directly without using autogen.sh + make.
1 parent a6d0d6f commit 54fddab

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,5 @@ jobs:
1414
# Prevent blocking the install on a question during configuring of tzdata.
1515
export ENV DEBIAN_FRONTEND=noninteractive
1616
sudo apt update
17-
sudo apt install build-essential mm-common clang-format-10 --yes
18-
sudo ln -sf /usr/bin/clang-format-10 /usr/bin/clang-format
19-
./autogen.sh --enable-warnings=fatal
20-
make check-format
17+
sudo apt install clang-format-12 --yes
18+
clang-format-12 --dry-run --Werror `find . -name "*.h" -or -name "*.cc"`

0 commit comments

Comments
 (0)