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
This commit is contained in:
Junio C Hamano 2022-10-25 17:11:44 -07:00
commit 4039b8f112
2 changed files with 12 additions and 0 deletions

View File

@ -251,6 +251,12 @@ jobs:
- jobname: linux-leaks
cc: gcc
pool: ubuntu-latest
- jobname: linux-asan
cc: gcc
pool: ubuntu-latest
- jobname: linux-ubsan
cc: gcc
pool: ubuntu-latest
env:
CC: ${{matrix.vector.cc}}
CC_PACKAGE: ${{matrix.vector.cc_package}}

View File

@ -280,6 +280,12 @@ linux-leaks)
export GIT_TEST_PASSING_SANITIZE_LEAK=true
export GIT_TEST_SANITIZE_LEAK_LOG=true
;;
linux-asan)
export SANITIZE=address
;;
linux-ubsan)
export SANITIZE=undefined
;;
esac
MAKEFLAGS="$MAKEFLAGS CC=${CC:-cc}"