Skip to content

Commit

Permalink
Add sanitized build
Browse files Browse the repository at this point in the history
  • Loading branch information
zinccyy committed Dec 14, 2022
1 parent f8fc324 commit bfd3c7c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,21 @@ build:default:
stage: build

script:
# build system plugin
- mkdir build
- cmake -S . -B build/ -DSYSTEMD_IFINDEX=1 -DCMAKE_C_COMPILER=clang
- cmake --build build/

artifacts:
paths:
- 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/

0 comments on commit bfd3c7c

Please sign in to comment.