Skip to content

Commit 1e9b4ed

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Github Actions] clang-format added.
1 parent be09380 commit 1e9b4ed

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/clang-format.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
3+
name: clang-format style check
4+
5+
on: # yamllint disable-line rule:truthy
6+
push:
7+
branches: ["main"]
8+
pull_request:
9+
# The branches below must be a subset of the branches above
10+
branches: ["main"]
11+
workflow_dispatch:
12+
13+
jobs:
14+
lint:
15+
name: clang-format style check
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
21+
22+
- name: Install dependencies
23+
run: |
24+
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
25+
apt-add-repository "deb http://apt.llvm.org/noble/ llvm-toolchain-noble main"
26+
apt-get -y update
27+
apt-get -y install --no-install-recommends --no-install-suggests clang-format
28+
clang-format --version
29+
30+
- name: test
31+
run: make test/styling

0 commit comments

Comments
 (0)