only run expensive UBSAN with probability 6.25% (#4781)
This commit is contained in:
parent
e2bf58a6f2
commit
6a0a5c03ed
|
@ -101,7 +101,11 @@ jobs:
|
|||
|
||||
# Stack usage test and UBSAN on recent enough gcc:
|
||||
if [[ '${{ runner.os }}' == 'Linux' && '${{ matrix.target.cpu }}' == 'amd64' ]]; then
|
||||
export NIMFLAGS="${NIMFLAGS} -d:limitStackUsage --passC:-fsanitize=undefined --passL:-fsanitize=undefined"
|
||||
if [[ '${{ github.sha }}' =~ ^7 ]]; then
|
||||
export NIMFLAGS="${NIMFLAGS} -d:limitStackUsage --passC:-fsanitize=undefined --passL:-fsanitize=undefined"
|
||||
else
|
||||
export NIMFLAGS="${NIMFLAGS} -d:limitStackUsage"
|
||||
fi
|
||||
echo "NIMFLAGS=${NIMFLAGS}" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue