@@ -553,6 +553,8 @@ jobs:
553
553
run : make -j4 && ./v -cg -cflags -Werror -o v cmd/v
554
554
- name : Self tests (-fsanitize=undefined)
555
555
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
556
558
557
559
tests-sanitize-undefined-gcc :
558
560
runs-on : ubuntu-20.04
@@ -573,6 +575,8 @@ jobs:
573
575
run : make -j4 && ./v -cg -cflags -Werror -o v cmd/v
574
576
- name : Self tests (-fsanitize=undefined)
575
577
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
576
580
577
581
tests-sanitize-address-clang :
578
582
runs-on : ubuntu-20.04
@@ -598,6 +602,8 @@ jobs:
598
602
run :
599
603
./v -cflags -fsanitize=address -o v cmd/v &&
600
604
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
601
607
602
608
tests-sanitize-address-msvc :
603
609
runs-on : windows-2019
@@ -648,6 +654,8 @@ jobs:
648
654
run :
649
655
./v -cflags -fsanitize=address,pointer-compare,pointer-subtract -o v cmd/v &&
650
656
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
651
659
652
660
tests-sanitize-memory-clang :
653
661
runs-on : ubuntu-20.04
@@ -672,6 +680,8 @@ jobs:
672
680
- name : Self tests (V compiled with -fsanitize=memory)
673
681
run :
674
682
./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
675
685
# ubuntu-autofree-selfcompile:
676
686
# runs-on: ubuntu-20.04
677
687
# timeout-minutes: 30
0 commit comments