mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-21 18:20:04 +00:00
Simplify lint (#4197)
This commit is contained in:
parent
4046f97278
commit
a18d42b208
10
.github/workflows/lint.yml
vendored
10
.github/workflows/lint.yml
vendored
@ -16,11 +16,13 @@ jobs:
|
||||
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
|
||||
|
||||
- name: Install clang-format
|
||||
uses: aminya/setup-cpp@290824452986e378826155f3379d31bce8753d76 # v0.37.0
|
||||
with:
|
||||
clangformat: 17.0.5
|
||||
run: |
|
||||
wget https://apt.llvm.org/llvm.sh
|
||||
sudo bash ./llvm.sh 17
|
||||
sudo apt install clang-format-17
|
||||
|
||||
- name: Run clang-format
|
||||
run: |
|
||||
find include src -name '*.h' -o -name '*.cc' | xargs clang-format -i -style=file -fallback-style=none
|
||||
find include src -name '*.h' -o -name '*.cc' | \
|
||||
xargs clang-format-17 -i -style=file -fallback-style=none
|
||||
git diff --exit-code
|
||||
|
Loading…
Reference in New Issue
Block a user