From d62e07e957974b3ba8081a928a46523ade0af83a Mon Sep 17 00:00:00 2001 From: Anton Baliasnikov Date: Tue, 19 Nov 2024 13:42:06 +0000 Subject: [PATCH] fix: run sanitizer tests only in debug mode (#43) --- .github/actions/rust-unit-tests/action.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/actions/rust-unit-tests/action.yml b/.github/actions/rust-unit-tests/action.yml index 95a578a..bfb441a 100644 --- a/.github/actions/rust-unit-tests/action.yml +++ b/.github/actions/rust-unit-tests/action.yml @@ -45,12 +45,8 @@ runs: shell: ${{ runner.os == 'Windows' && 'msys2 {0}' || 'bash -ex {0}' }} env: RUSTC_BOOTSTRAP: 1 + if: inputs.sanitizer == '' run: | - if [ '${{ inputs.sanitizer }}' != '' ]; then - rustup component add rust-src --toolchain "$(rustc --version | cut -d ' ' -f2)-${TARGET}" - export RUSTFLAGS="${RUSTFLAGS} -Z sanitizer=${{ inputs.sanitizer }}" - export ASAN_SYMBOLIZER_PATH=$(which llvm-symbolizer) - fi TEST_COMMAND="test" if [ '${{ inputs.enable-coverage }}' = 'true' ]; then export LLVM_COV=$(which llvm-cov)