Updated Github/Gitlab CI

* instrument Clang's thread sanitizer for tests

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig
2022-11-21 23:24:06 +01:00
parent 2c95b31210
commit 8b81b170d3
3 changed files with 17 additions and 5 deletions

View File

@@ -51,7 +51,7 @@ jobs:
target: x86-64
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

View File

@@ -29,15 +29,19 @@ jobs:
include:
- compiler: "default-cc"
os: "ubuntu-latest"
sanitizer: "-DENABLE_SANITIZER=ON"
- compiler: "clang-12"
os: "ubuntu-latest"
sanitizer: "-DENABLE_SANITIZER_THREAD=ON"
- compiler: "gcc-10"
os: "ubuntu-latest"
sanitizer: "-DENABLE_SANITIZER=ON"
- compiler: "gcc-7"
os: "ubuntu-latest"
os: "ubuntu-18.04"
sanitizer: "-DENABLE_SANITIZER=ON"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Install Ubuntu Prerequisites
@@ -62,7 +66,7 @@ jobs:
- name: Configure nDPId
run: |
mkdir build && cd build
cmake .. -DENABLE_SYSTEMD=ON -DENABLE_COVERAGE=ON -DBUILD_EXAMPLES=ON -DBUILD_NDPI=ON -DENABLE_SANITIZER=ON ${{ matrix.ndpid_zlib }} ${{ matrix.ndpid_gcrypt }}
cmake .. -DENABLE_SYSTEMD=ON -DENABLE_COVERAGE=ON -DBUILD_EXAMPLES=ON -DBUILD_NDPI=ON ${{ matrix.sanitizer }} ${{ matrix.ndpid_zlib }} ${{ matrix.ndpid_gcrypt }}
- name: Build nDPId
run: |
make -C build all VERBOSE=1