Skip to content

Commit 08f58cb

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

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/clang-format.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
# yamllint disable rule:line-length
24+
run: |
25+
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
26+
sudo apt-add-repository "deb http://apt.llvm.org/noble/ llvm-toolchain-noble main"
27+
sudo apt-get -y update
28+
sudo apt-get -y install --no-install-recommends --no-install-suggests clang-format
29+
clang-format --version
30+
# yamllint enable rule:line-length
31+
32+
- name: test
33+
run: make test/styling

0 commit comments

Comments
 (0)