Add clang format GitHub Action

Signed-off-by: Akshat Agarwal <humancalico@disroot.org>
This commit is contained in:
Akshat Agarwal 2021-02-17 15:26:10 +05:30 committed by Philip Herron
parent 8a580f9152
commit 642cc5ed4f
1 changed files with 20 additions and 0 deletions

20
.github/workflows/clang-format.yml vendored Normal file
View File

@ -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