Skip to content

Commit 4afce73

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 4afce73

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 debug builds were using ASAN
50+
if: runner.os == 'Linux' # For 'nm'
51+
run: |
52+
nm target/client | grep '__asan_init'
53+
nm target/server | grep '__asan_init'
54+
- name: Build release binaries
55+
run: |
56+
make clean
57+
make CC=${{ matrix.cc }} PROFILE=release
58+
- name: Verify release builds were not using ASAN
59+
if: runner.os == 'Linux' # For 'nm'
60+
run: |
61+
nm target/client | grep -v '__asan_init'
62+
nm target/server | grep -v '__asan_init'
4963
5064
valgrind:
5165
name: Valgrind

0 commit comments

Comments
 (0)