From 951dfdade3c01b8d15761747ccc862b79047edfe Mon Sep 17 00:00:00 2001 From: LinkTed Date: Fri, 11 Mar 2022 16:11:22 +0100 Subject: [PATCH] Add github action to check the code style --- .github/workflows/clang-format-ubuntu.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/clang-format-ubuntu.yml diff --git a/.github/workflows/clang-format-ubuntu.yml b/.github/workflows/clang-format-ubuntu.yml new file mode 100644 index 000000000..8d2022cb4 --- /dev/null +++ b/.github/workflows/clang-format-ubuntu.yml @@ -0,0 +1,14 @@ +name: clang_format_ubuntu + +on: [push, pull_request] + +jobs: + + clang-format-ubuntu: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: RafikFarhad/clang-format-github-action@master + with: + sources: "src/**/*.h,src/**/*.h.in,src/**/*.c" + style: file