Skip to content

Commit e4abf0e

Browse files
committed
ci: verify ASAN presence/absence as appropriate
Presently only done on Linux since the test relies on `nm` being available.
1 parent a097fa1 commit e4abf0e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/test.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,20 @@ jobs:
4646
run: make CC=${{ matrix.cc }} PROFILE=debug test integration
4747
- name: Platform verifier connect test
4848
run: make PROFILE=debug connect-test
49+
- name: Verify client debug build was using ASAN
50+
if: runner.os == 'Linux' # For 'nm'
51+
run: nm target/client | grep '__asan_init'
52+
- name: Verify server debug build was using ASAN
53+
if: runner.os == 'Linux' # For 'nm'
54+
run: nm target/server | grep '__asan_init'
55+
- name: Build release binaries
56+
run: make clean; make CC=${{ matrix.cc }} PROFILE=release
57+
- name: Verify release build was not using ASAN
58+
if: runner.os == 'Linux' # For 'nm'
59+
run: nm target/client | grep -v '__asan_init'
60+
- name: Verify release build was not using ASAN
61+
if: runner.os == 'Linux' # For 'nm'
62+
run: nm target/server | grep -v '__asan_init'
4963

5064
valgrind:
5165
name: Valgrind

0 commit comments

Comments
 (0)