diff options
author | Akshat Agarwal <humancalico@disroot.org> | 2021-02-17 15:26:10 +0530 |
---|---|---|
committer | Philip Herron <herron.philip@googlemail.com> | 2021-02-19 10:31:39 +0000 |
commit | 642cc5ed4ffcf0a334cec450e536e5b948819271 (patch) | |
tree | b21d6989b4d562c87b4cb9e8e27448d1b92cf582 | |
parent | 8a580f915218bbda017c50582fe47af877d90777 (diff) | |
download | gcc-642cc5ed4ffcf0a334cec450e536e5b948819271.zip gcc-642cc5ed4ffcf0a334cec450e536e5b948819271.tar.gz gcc-642cc5ed4ffcf0a334cec450e536e5b948819271.tar.bz2 |
Add clang format GitHub Action
Signed-off-by: Akshat Agarwal <humancalico@disroot.org>
-rw-r--r-- | .github/workflows/clang-format.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml new file mode 100644 index 0000000..1d1a022 --- /dev/null +++ b/.github/workflows/clang-format.yml @@ -0,0 +1,20 @@ +name: Clang Format Lint + +on: + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Copy .clang-format file + run: cp contrib/clang-format .clang-format + - name: Check clang-format + uses: DoozyX/clang-format-lint-action@v0.11 + with: + source: 'gcc/rust/' + extensions: 'h,cc' + clangFormatVersion: 10 |