diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 71ee5631b5..ac19aeb8c7 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -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: