We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0b16ca commit 88660e7Copy full SHA for 88660e7
.github/workflows/build.yml
@@ -9,6 +9,22 @@ on:
9
branches: [main]
10
11
jobs:
12
+ check_formatting:
13
+ runs-on: ubuntu-latest
14
+ container:
15
+ image: archlinux:latest
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+ - name: Install dependencies
19
+ run: pacman --noconfirm -Syu findutils git clang
20
+ - name: Run clang-format on all C and C++ sources
21
+ run: find . -type f -iname "*.c" -or -iname "*.cc" -or -iname "*.cpp" -or -iname "*.h" -exec clang-format -i {} \;
22
+ - name: Check whether there are differences
23
+ run: |
24
+ if [[ -n "$(git status -s)" ]]; then
25
+ printf "Files are not properly formatted!\n"
26
+ git diff
27
+ fi
28
build_arch_linux_jack1:
29
runs-on: ubuntu-latest
30
container:
0 commit comments