Skip to content

Commit 062ee43

Browse files
authored
ci: add v build-examples steps to the sanitize jobs (#9655)
1 parent 903dd49 commit 062ee43

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,8 @@ jobs:
553553
run: make -j4 && ./v -cg -cflags -Werror -o v cmd/v
554554
- name: Self tests (-fsanitize=undefined)
555555
run: ./v -cflags "-fsanitize=undefined" -o v2 cmd/v && ./v2 -cflags -fsanitize=undefined test-self
556+
- name: Build examples (V compiled with -fsanitize=undefined)
557+
run: ./v2 build-examples
556558

557559
tests-sanitize-undefined-gcc:
558560
runs-on: ubuntu-20.04
@@ -573,6 +575,8 @@ jobs:
573575
run: make -j4 && ./v -cg -cflags -Werror -o v cmd/v
574576
- name: Self tests (-fsanitize=undefined)
575577
run: ./v -cflags "-fsanitize=undefined" -o v2 cmd/v && ./v2 -cflags -fsanitize=undefined test-self
578+
- name: Build examples (V compiled with -fsanitize=undefined)
579+
run: ./v2 build-examples
576580

577581
tests-sanitize-address-clang:
578582
runs-on: ubuntu-20.04
@@ -598,6 +602,8 @@ jobs:
598602
run:
599603
./v -cflags -fsanitize=address -o v cmd/v &&
600604
ASAN_OPTIONS=detect_leaks=0 ./v -cc tcc test-self -asan-compiler
605+
- name: Build examples (V compiled with -fsanitize=address)
606+
run: ASAN_OPTIONS=detect_leaks=0 ./v build-examples
601607

602608
tests-sanitize-address-msvc:
603609
runs-on: windows-2019
@@ -648,6 +654,8 @@ jobs:
648654
run:
649655
./v -cflags -fsanitize=address,pointer-compare,pointer-subtract -o v cmd/v &&
650656
ASAN_OPTIONS=detect_leaks=0 ./v -cc tcc test-self -asan-compiler
657+
- name: Build examples (V compiled with -fsanitize=address)
658+
run: ASAN_OPTIONS=detect_leaks=0 ./v build-examples
651659

652660
tests-sanitize-memory-clang:
653661
runs-on: ubuntu-20.04
@@ -672,6 +680,8 @@ jobs:
672680
- name: Self tests (V compiled with -fsanitize=memory)
673681
run:
674682
./v -cflags -fsanitize=memory -o v cmd/v && ./v -cc tcc test-self -msan-compiler
683+
- name: Build examples (V compiled with -fsanitize=memory)
684+
run: ./v build-examples
675685
# ubuntu-autofree-selfcompile:
676686
# runs-on: ubuntu-20.04
677687
# timeout-minutes: 30

0 commit comments

Comments
 (0)