Skip to content

Commit ada731b

Browse files
committed
Add sanitizer validation to CI pipeline
Integrate AddressSanitizer and UndefinedBehaviorSanitizer testing into the GitHub Actions workflow to catch memory safety and undefined behavior issues early in the development cycle.
1 parent c113d5e commit ada731b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626
- name: IR regression tests
2727
run: |
2828
make check-snapshot || exit 1
29+
- name: Sanitizer-enabled stage 0 tests
30+
env:
31+
CC: ${{ matrix.compiler }}
32+
run: |
33+
make check-sanitizer || exit 1
2934
- name: Unit tests
3035
run: |
3136
make check || exit 1
@@ -48,6 +53,7 @@ jobs:
4853
apt-get install -yqq build-essential
4954
run: |
5055
make config ARCH=arm
56+
make check-sanitizer || exit 1
5157
make check || exit 1
5258
5359
coding-style:

0 commit comments

Comments
 (0)