-
-
Notifications
You must be signed in to change notification settings - Fork 77
77 lines (59 loc) · 1.63 KB
/
cpp.yml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: C++
on:
push:
branches: [main]
pull_request:
env:
POAC_TERM_COLOR: always
CXX: g++-13
permissions:
contents: read
jobs:
clang-tidy:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Setup dependencies
uses: ./.github/actions/setup-ubuntu-deps
- name: Build Poac
run: make RELEASE=1
- name: Install clang-tidy
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x ./llvm.sh
sudo ./llvm.sh 18
sudo apt-get install -y clang-tidy-18
- name: poac tidy
run: ./build-out/poac tidy --verbose
env:
POAC_TIDY: clang-tidy-18
format:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Setup dependencies
uses: ./.github/actions/setup-ubuntu-deps
- name: Build Poac
run: make RELEASE=1
- name: Install clang-format
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x ./llvm.sh
sudo ./llvm.sh 18
sudo apt-get install -y clang-format-18
- name: poac fmt
run: ./build-out/poac fmt --check --verbose --exclude srcOld --exclude testsOld
env:
POAC_FMT: clang-format-18
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Setup dependencies
uses: ./.github/actions/setup-ubuntu-deps
- name: Build Poac
run: make RELEASE=1
- name: Install cpplint
run: sudo apt-get install -y cpplint
- name: poac lint
run: ./build-out/poac lint --verbose --exclude srcOld --exclude testsOld