summaryrefslogtreecommitdiff
path: root/.github/workflows/clang-format-check.yml
blob: fd6fb3a6278b9b99b6a5d3429284f6ce429ccced (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 clang-format-12 --yes
        clang-format-12 --dry-run --Werror `find . -name "*.h" -or -name "*.cc"`