diff options
author | Murray Cumming <murraycu@google.com> | 2019-10-28 11:30:01 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2021-01-24 11:05:36 +0100 |
commit | 0013fb8b2bf28f9a89439ab27f55cf49b025bc3a (patch) | |
tree | f0ebb6d1a65151c206c0bb4d84951726d7eb5d52 | |
parent | c7d9a270a56ab1f48ddeba7406b0b7c8450e06af (diff) | |
download | sigc++-0013fb8b2bf28f9a89439ab27f55cf49b025bc3a.tar.gz |
GitHub Actions CI: Check formatting with clang-format
This requires clang-format-10, which is available in ubuntu-20.04.
-rw-r--r-- | .github/workflows/clang-format-check.yml | 20 |
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 |