From 80cf6859212ee6ac260a95d99773488be734ed22 Mon Sep 17 00:00:00 2001 From: Mateo Cindric Date: Wed, 14 Dec 2022 17:28:33 +0000 Subject: [PATCH] Add sanitized build --- .gitlab-ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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