Skip to content

Commit

Permalink
add clang-format job
Browse files Browse the repository at this point in the history
  • Loading branch information
andarut committed Jul 23, 2024
1 parent 5630c2b commit a551533
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ env:
kphp_build_dir: /home/kitten/kphp/build

jobs:
clang-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install clang-format
run: wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \
apt-get update && apt-get install clang-format-18
- name: debug
run: which clang-format-18
- name: Run clang-format
run: find ./runtime-light/ -iname '*.h' -o -iname '*.cpp' | xargs clang-format-18 --dry-run -Werror
build-linux:
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit a551533

Please sign in to comment.