diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index bb8fc446..2b04fa9c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -157,7 +157,7 @@ jobs: - name: Running address sanitizer env: DO_ASAN: true - run: ./hashes/contrib/test.sh + run: cd hashes && ./contrib/test.sh WASM: name: WebAssembly Build # hashes crate only. @@ -170,4 +170,4 @@ jobs: - name: Running WASM build env: DO_WASM: true - run: ./hashes/contrib/test.sh + run: cd hashes && ./contrib/test.sh diff --git a/hashes/contrib/test.sh b/hashes/contrib/test.sh index b5a2a8b0..68423c36 100755 --- a/hashes/contrib/test.sh +++ b/hashes/contrib/test.sh @@ -81,6 +81,8 @@ if [ "$DO_ASAN" = true ]; then CC='clang -fsanitize=memory -fno-omit-frame-pointer' \ RUSTFLAGS='-Zsanitizer=memory -Zsanitizer-memory-track-origins -Cforce-frame-pointers=yes' \ cargo test --lib --no-default-features --features="$FEATURES" -Zbuild-std --target x86_64-unknown-linux-gnu + # Cleanup because we do not want to use a build that used these build flags again. + cargo clean fi # Bench if told to, only works with non-stable toolchain (nightly, beta).