diff options
author | Murray Cumming <murraycu@google.com> | 2019-10-28 11:30:01 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2021-01-02 18:37:49 +0100 |
commit | f15dc63ea2a27412628d744fc77949bfe2c4b73e (patch) | |
tree | f0ebb6d1a65151c206c0bb4d84951726d7eb5d52 | |
parent | 4fbfaf8f2475945b8e19b99b69fbd822b1e4d876 (diff) | |
download | sigc++-github-actions-check-format.tar.gz |
GitHub Actions CI: Check formatting with clang-formatgithub-actions-check-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 |