Skip to content

Commit

Permalink
fix: run sanitizer tests only in debug mode (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbaliasnikov authored Nov 19, 2024
1 parent 537225c commit d62e07e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/actions/rust-unit-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d62e07e

Please sign in to comment.