-
-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (44 loc) · 1.14 KB
/
Copy pathcpp.yml
File metadata and controls
55 lines (44 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: C++
on:
push:
branches: [main]
pull_request:
env:
CABIN_TERM_COLOR: always
permissions:
contents: read
jobs:
format:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Install clang-format
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x ./llvm.sh
sudo ./llvm.sh 19
sudo apt-get install -y clang-format-19
- name: Install Cabin
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew install cabin
- name: cabin fmt
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
cabin fmt --check --verbose
env:
CABIN_FMT: clang-format-19
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Install cpplint
run: pip install cpplint
- name: Install Cabin
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew install cabin
- name: cabin lint
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
cabin lint --verbose