summaryrefslogtreecommitdiff
path: root/.github/workflows/clang-format-check.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/clang-format-check.yml')
-rw-r--r--.github/workflows/clang-format-check.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.github/workflows/clang-format-check.yml b/.github/workflows/clang-format-check.yml
new file mode 100644
index 0000000..8f59c40
--- /dev/null
+++ b/.github/workflows/clang-format-check.yml
@@ -0,0 +1,20 @@
+name: "CI: Check Code Formatting"
+
+on: [push]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v1
+ - name: Check Code Formatting
+ run: |
+ # Prevent blocking the install on a question during configuring of tzdata.
+ export ENV DEBIAN_FRONTEND=noninteractive
+ sudo apt update
+ sudo apt install build-essential mm-common clang-format-10 --yes
+ sudo ln -sf /usr/bin/clang-format-10 /usr/bin/clang-format
+ ./autogen.sh --enable-warnings=fatal
+ make check-format