From a8abf1c5c7b3a89ade5c2ec895a7cff10db03b32 Mon Sep 17 00:00:00 2001 From: anakinxc <103552181+anakinxc@users.noreply.github.com> Date: Mon, 7 Aug 2023 16:36:10 +0800 Subject: [PATCH] Add clang-format linter (#106) --- .github/workflows/clang-format-linter.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/clang-format-linter.yml diff --git a/.github/workflows/clang-format-linter.yml b/.github/workflows/clang-format-linter.yml new file mode 100644 index 0000000..82fca3c --- /dev/null +++ b/.github/workflows/clang-format-linter.yml @@ -0,0 +1,13 @@ +name: Run clang-format Linter + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: DoozyX/clang-format-lint-action@v0.16.2 + with: + extensions: 'h,cc' + clangFormatVersion: 16.0.3