-
Notifications
You must be signed in to change notification settings - Fork 45
55 lines (48 loc) · 1.42 KB
/
cxx.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
name: 🥥 Lint C++
on:
workflow_dispatch: {}
push:
paths:
- "**.cpp"
- "**.h"
jobs:
lint-cxx:
runs-on: ubuntu-22.04
timeout-minutes: 32
steps:
- name: Clone polytracker repository
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 1
# - name: Install clang-format
# run: |
# sudo apt-get update -y
# sudo apt-get install -y clang-format libgraphviz-dev
# - name: Set up Python 3.10
# uses: actions/setup-python@v4
# with:
# python-version: "3.x"
# - name: C++ lint
# run: |
# python3 third_party/run-clang-format/run-clang-format.py \
# polytracker/include/polytracker/*.h \
# polytracker/include/polytracker/passes/*.h \
# polytracker/include/taintdag/*.h \
# polytracker/src/passes/*.cpp \
# polytracker/src/polytracker/*.cpp \
# polytracker/src/taint_sources/*.cpp \
# polytracker/src/taintdag/*.cpp
- name: Run C++ Linters
uses: cpp-linter/cpp-linter-action@v2
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version: 16
style: file
- name: Report result
if: steps.linter.outputs.checks-failed > 0
run:
echo "Some files failed the linting checks!"
exit 1