diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f1a70ee7..a20e2eeb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,4 +30,15 @@ build:default: artifacts: paths: - - build/ \ No newline at end of file + - build/ + +build:sanitized: + stage: build + + script: + - mkdir build-sanitized + - cmake -S . -B build-sanitized/ -DSYSTEMD_IFINDEX=1 -DCMAKE_C_COMPILER=clang -DCMAKE_C_FLAGS=\"-fsanitize=address,undefined\" -DENABLE_SANITIZER=ON + - cmake --build build-sanitized/ + artifacts: + paths: + - build-sanitized/ \ No newline at end of file