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 caa0b2b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 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 Expand Up @@ -93,6 +104,7 @@ jobs:
"git config --global --add safe.directory ${{env.kphp_root_dir}}"

- name: Check formatting in light runtime folder
continue-on-error: true
if: ${{ matrix.os == 'focal' && matrix.light_runtime == 'on' }}
run: docker exec kphp-build-container-${{matrix.os}} bash -c
"find ${{env.kphp_root_dir}}/runtime-light/ -iname '*.h' -o -iname '*.cpp' | xargs clang-format-18 --dry-run -Werror"
Expand Down

0 comments on commit caa0b2b

Please sign in to comment.