summaryrefslogtreecommitdiff
path: root/.github/workflows/clang-format-check.yml
blob: 8f59c403e482595ca085d9a267294a09cb7c9ddb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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