Skip to content

Commit 78d44a4

Browse files
committed
GitHub Actions CI: Check formatting with clang-format
This uses a Docker image for Ubuntu 20.04 because that has clang-format-10.
1 parent 1252e72 commit 78d44a4

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: "CI: Check Code Formatting"
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
container: ubuntu:20.04
10+
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: Check Code Formatting
14+
run: |
15+
# Prevent blocking the install on a question during configuring of tzdata.
16+
export ENV DEBIAN_FRONTEND=noninteractive
17+
apt update
18+
apt install build-essential mm-common clang-format-10 --yes
19+
alias clang-format="clang-format-10"
20+
ln -s /usr/bin/clang-format-10 /usr/bin/clang-format
21+
./autogen.sh --enable-warnings=fatal
22+
make check-format

0 commit comments

Comments
 (0)