Skip to content

unify inmemoryscanner #129

unify inmemoryscanner

unify inmemoryscanner #129

---
name: CPP CI ApiTracing
on:
push:
branches:
- "main"
paths:
- 'plugins/apitracing/**.h'
- 'plugins/apitracing/**.cpp'
- 'plugins/apitracing/**/CMakeLists.txt'
- 'plugins/apitracing/CMakePresets.json'
- 'plugins/apitracing/.clang-tidy'
- 'plugins/apitracing/.clang-format'
- 'plugins/apitracing/sonar-project.properties'
pull_request:
branches:
- "main"
paths:
- 'plugins/apitracing/**.h'
- 'plugins/apitracing/**.cpp'
- 'plugins/apitracing/**/CMakeLists.txt'
- 'plugins/apitracing/CMakePresets.json'
- 'plugins/apitracing/.clang-tidy'
- 'plugins/apitracing/.clang-format'
- 'plugins/apitracing/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/apitracing/ -iname *.h -o -iname *.cpp | xargs clang-format --style=file --dry-run --Werror
build_apitracing:
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 apitracing
run: |
cmake --preset ${{ matrix.compiler }}-debug
cmake --build --preset ${{ matrix.compiler }}-build-debug
ctest --preset ${{ matrix.compiler }}-test
working-directory: plugins/apitracing