Skip to content

Commit 4039b8f

Browse files
committed
Merge branch 'jc/more-sanitizer-at-ci'
Enable address and undefined sanitizer tasks at GitHub Actions CI. * jc/more-sanitizer-at-ci: ci: add address and undefined sanitizer tasks
2 parents bda957d + 1c0962c commit 4039b8f

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,12 @@ jobs:
251251
- jobname: linux-leaks
252252
cc: gcc
253253
pool: ubuntu-latest
254+
- jobname: linux-asan
255+
cc: gcc
256+
pool: ubuntu-latest
257+
- jobname: linux-ubsan
258+
cc: gcc
259+
pool: ubuntu-latest
254260
env:
255261
CC: ${{matrix.vector.cc}}
256262
CC_PACKAGE: ${{matrix.vector.cc_package}}

ci/lib.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,12 @@ linux-leaks)
280280
export GIT_TEST_PASSING_SANITIZE_LEAK=true
281281
export GIT_TEST_SANITIZE_LEAK_LOG=true
282282
;;
283+
linux-asan)
284+
export SANITIZE=address
285+
;;
286+
linux-ubsan)
287+
export SANITIZE=undefined
288+
;;
283289
esac
284290

285291
MAKEFLAGS="$MAKEFLAGS CC=${CC:-cc}"

0 commit comments

Comments
 (0)