From da0b040e6a553b9820efa02f311b57c09b8c854e Mon Sep 17 00:00:00 2001 From: Andrey Arutiunian Date: Wed, 28 Aug 2024 02:43:53 +0300 Subject: [PATCH] init --- .github/workflows/Build.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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: