fine
This commit is contained in:
parent
85602da335
commit
85383ed7dc
1 changed files with 9 additions and 1 deletions
10
.github/workflows/ci.yaml
vendored
10
.github/workflows/ci.yaml
vendored
|
|
@ -14,7 +14,15 @@ jobs:
|
||||||
tar -xf clang+llvm-17.0.6-x86_64-linux-gnu-ubuntu-22.04.tar.xz
|
tar -xf clang+llvm-17.0.6-x86_64-linux-gnu-ubuntu-22.04.tar.xz
|
||||||
sudo cp clang+llvm-17.0.6-x86_64-linux-gnu-ubuntu-22.04/bin/clang-format /usr/local/bin/
|
sudo cp clang+llvm-17.0.6-x86_64-linux-gnu-ubuntu-22.04/bin/clang-format /usr/local/bin/
|
||||||
- name: Check clang-format
|
- name: Check clang-format
|
||||||
run: clang-format --style=google --dry-run -Werror **/*.{hpp,hh,hxx,h,cpp,cc,cxx,c}
|
run: |
|
||||||
|
set -e
|
||||||
|
FILES=$(git ls-files | grep -E '\.(cc|hh|hpp|cpp|cxx)$' || true)
|
||||||
|
if [ -z "$FILES" ]; then exit 0; fi
|
||||||
|
clang-format --style=google --dry-run -Werror **/*.{cc,hh}
|
||||||
|
clang-format --version
|
||||||
|
for f in $FILES; do
|
||||||
|
clang-format --style=google --dry-run -Werror "$f"
|
||||||
|
done
|
||||||
|
|
||||||
build-and-test:
|
build-and-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue