-
Notifications
You must be signed in to change notification settings - Fork 2
74 lines (69 loc) · 1.93 KB
/
cpp_project.yml
File metadata and controls
74 lines (69 loc) · 1.93 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: CPP project with shell script tests CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
env:
CC: clang
CXX: clang++
steps:
- name: Setup dependencies
run: |
sudo apt-get install -y clang-tidy-10
sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-10 100
- name: Checkout submodules
uses: actions/checkout@v1
with:
submodules: recursive
- name: Check for bad words
run: "! grep -R -n -w -f .bad_words src include"
- name: Run clang format
uses: DoozyX/clang-format-lint-action@v0.11
with:
source: '.'
exclude: './googletest ./test'
extensions: 'h,cpp'
clangFormatVersion: 11
- uses: actions/checkout@v2
with:
repository: 'Kurkin/ica-lint-action'
path: ica
- name: Prepare build dir
run: mkdir build
- name: Generate build files using cmake
run: cmake ..
working-directory: ./build
- name: Run make
run: make
working-directory: ./build
- name: Run tests
env:
LANG: C
run: ctest -VV
working-directory: ./build/test
- name: Prepare ASAN build dir
run: mkdir build_asan
- name: Generate ASAN build files using cmake
run: cmake .. -DCMAKE_BUILD_TYPE=ASAN
working-directory: ./build_asan
- name: Run ASAN make
run: make
working-directory: ./build_asan
- name: Run ASAN tests
env:
LANG: C
run: ctest -VV
working-directory: ./build_asan/test
- name: Prepare USAN build dir
run: mkdir build_usan
- name: Generate USAN build files using cmake
run: cmake .. -DCMAKE_BUILD_TYPE=USAN
working-directory: ./build_usan
- name: Run USAN make
run: make
working-directory: ./build_usan
- name: Run USAN tests
env:
LANG: C
run: ctest -VV
working-directory: ./build_usan/test