aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/clang_format.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/clang_format.yml')
-rw-r--r--.github/workflows/clang_format.yml24
1 files changed, 0 insertions, 24 deletions
diff --git a/.github/workflows/clang_format.yml b/.github/workflows/clang_format.yml
deleted file mode 100644
index 17d1567..0000000
--- a/.github/workflows/clang_format.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-name: clang-format Check
-
-on: [push, pull_request]
-
-jobs:
- # Building using the github runner environement directly.
- clang-format:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - name: Fetch origin/master
- run: git fetch origin master
- - name: List of changed file(s)
- run: git diff --name-only FETCH_HEAD
-
- - name: Build clang-format docker
- run: cd .github/workflows && docker build --tag=linter .
- - name: Check clang-format
- run: docker run --rm --init -v $(pwd):/repo linter:latest clang-format --version
- - name: clang-format help
- run: docker run --rm --init -v $(pwd):/repo linter:latest clang-format --help
-
- - name: Check current commit
- run: docker run --rm --init -v $(pwd):/repo -w /repo linter:latest sh -c "git diff --diff-filter=d --name-only FETCH_HEAD | grep '\.c$\|\.h$\|\.cc$' | xargs clang-format --style=file --dry-run --Werror "