From 062ee4356db19de3e369b704da705cb04513b02a Mon Sep 17 00:00:00 2001 From: ka-weihe Date: Fri, 9 Apr 2021 22:39:02 +0200 Subject: [PATCH] ci: add `v build-examples` steps to the sanitize jobs (#9655) --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 013f6a1628..ae13146603 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -553,6 +553,8 @@ jobs: run: make -j4 && ./v -cg -cflags -Werror -o v cmd/v - name: Self tests (-fsanitize=undefined) run: ./v -cflags "-fsanitize=undefined" -o v2 cmd/v && ./v2 -cflags -fsanitize=undefined test-self + - name: Build examples (V compiled with -fsanitize=undefined) + run: ./v2 build-examples tests-sanitize-undefined-gcc: runs-on: ubuntu-20.04 @@ -573,6 +575,8 @@ jobs: run: make -j4 && ./v -cg -cflags -Werror -o v cmd/v - name: Self tests (-fsanitize=undefined) run: ./v -cflags "-fsanitize=undefined" -o v2 cmd/v && ./v2 -cflags -fsanitize=undefined test-self + - name: Build examples (V compiled with -fsanitize=undefined) + run: ./v2 build-examples tests-sanitize-address-clang: runs-on: ubuntu-20.04 @@ -598,6 +602,8 @@ jobs: run: ./v -cflags -fsanitize=address -o v cmd/v && ASAN_OPTIONS=detect_leaks=0 ./v -cc tcc test-self -asan-compiler + - name: Build examples (V compiled with -fsanitize=address) + run: ASAN_OPTIONS=detect_leaks=0 ./v build-examples tests-sanitize-address-msvc: runs-on: windows-2019 @@ -648,6 +654,8 @@ jobs: run: ./v -cflags -fsanitize=address,pointer-compare,pointer-subtract -o v cmd/v && ASAN_OPTIONS=detect_leaks=0 ./v -cc tcc test-self -asan-compiler + - name: Build examples (V compiled with -fsanitize=address) + run: ASAN_OPTIONS=detect_leaks=0 ./v build-examples tests-sanitize-memory-clang: runs-on: ubuntu-20.04 @@ -672,6 +680,8 @@ jobs: - name: Self tests (V compiled with -fsanitize=memory) run: ./v -cflags -fsanitize=memory -o v cmd/v && ./v -cc tcc test-self -msan-compiler + - name: Build examples (V compiled with -fsanitize=memory) + run: ./v build-examples # ubuntu-autofree-selfcompile: # runs-on: ubuntu-20.04 # timeout-minutes: 30