-
Notifications
You must be signed in to change notification settings - Fork 6
60 lines (53 loc) · 1.73 KB
/
cpp-inmemory.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
---
name: CPP CI InMemory
on:
push:
branches:
- "main"
paths:
- 'vmicore/src/include/**.h'
- 'vmicore/test/include/**.h'
- 'plugins/inmemoryscanner/**.h'
- 'plugins/inmemoryscanner/**.cpp'
- 'plugins/inmemoryscanner/**/CMakeLists.txt'
- 'plugins/inmemoryscanner/CMakePresets.json'
- 'plugins/inmemoryscanner/.clang-tidy'
- 'plugins/inmemoryscanner/.clang-format'
- 'plugins/inmemoryscanner/sonar-project.properties'
pull_request:
branches:
- "main"
paths:
- 'vmicore/src/include/**.h'
- 'vmicore/test/include/**.h'
- 'plugins/inmemoryscanner/**.h'
- 'plugins/inmemoryscanner/**.cpp'
- 'plugins/inmemoryscanner/**/CMakeLists.txt'
- 'plugins/inmemoryscanner/CMakePresets.json'
- 'plugins/inmemoryscanner/.clang-tidy'
- 'plugins/inmemoryscanner/.clang-format'
- 'plugins/inmemoryscanner/sonar-project.properties'
jobs:
format:
runs-on: ubuntu-latest
container:
image: gdatacyberdefense/clang-format:16
steps:
- uses: actions/checkout@v3
- name: Perform C++ format check
run: find plugins/inmemoryscanner/ -iname *.h -o -iname *.cpp | xargs clang-format --style=file --dry-run --Werror
build_inmemoryscanner:
runs-on: ubuntu-latest
container:
image: ghcr.io/gdatasoftwareag/vmi-build
strategy:
matrix:
compiler: [ clang, gcc ]
steps:
- uses: actions/checkout@v3
- name: Build and test inmemoryscanner
run: |
cmake --preset ${{ matrix.compiler }}-debug
cmake --build --preset ${{ matrix.compiler }}-build-debug
ctest --preset ${{ matrix.compiler }}-test
working-directory: plugins/inmemoryscanner