From 3a8c8dd4e9151a258bb146610b939d047418877a Mon Sep 17 00:00:00 2001 From: William Yang Date: Sun, 10 Dec 2023 23:10:14 +0100 Subject: [PATCH] ci: check c code format --- .github/workflows/code-format.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/code-format.yaml diff --git a/.github/workflows/code-format.yaml b/.github/workflows/code-format.yaml new file mode 100644 index 00000000..a789c389 --- /dev/null +++ b/.github/workflows/code-format.yaml @@ -0,0 +1,13 @@ +name: clang-format Check +on: [push, pull_request] +jobs: + formatting-check: + name: Formatting Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Run clang-format style check for C/C++/Protobuf programs. + uses: jidicula/clang-format-action@v4.11.0 + with: + clang-format-version: '13' + check-path: 'c_src'