aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshat Agarwal <humancalico@disroot.org>2021-02-17 15:26:10 +0530
committerPhilip Herron <herron.philip@googlemail.com>2021-02-19 10:31:39 +0000
commit642cc5ed4ffcf0a334cec450e536e5b948819271 (patch)
treeb21d6989b4d562c87b4cb9e8e27448d1b92cf582
parent8a580f915218bbda017c50582fe47af877d90777 (diff)
downloadgcc-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.yml20
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