Skip to content

Commit ee13e2a

Browse files
committed
sanitizers
1 parent 796d2bb commit ee13e2a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/sanitizer.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ jobs:
3838

3939
- name: Run tests with ASAN
4040
env:
41-
RUSTFLAGS: "-Zsanitizer=address -Cdebuginfo=2"
41+
RUSTFLAGS: "-Zsanitizer=address -Cdebuginfo=2 -Cunsafe-allow-abi-mismatch=sanitizer"
4242
ASAN_SYMBOLIZER_PATH: /usr/bin/llvm-symbolizer-18
4343
ASAN_OPTIONS: "symbolize=1"
4444
LSAN_OPTIONS: "fast_unwind_on_malloc=0"
4545
run: |
4646
# FFI crates (C interop)
47-
cargo +nightly test \
47+
cargo +nightly test --target x86_64-unknown-linux-gnu \
4848
-p key-wallet-ffi -p dash-spv-ffi -p dash-network-ffi --lib --tests
4949
5050
# Core crypto crates (unsafe optimizations)
51-
cargo +nightly test \
51+
cargo +nightly test --target x86_64-unknown-linux-gnu \
5252
-p dashcore -p dashcore_hashes --lib --tests
5353
5454
tsan:
@@ -64,9 +64,9 @@ jobs:
6464

6565
- name: Run tests with TSAN
6666
env:
67-
RUSTFLAGS: "-Zsanitizer=thread -Cdebuginfo=2"
67+
RUSTFLAGS: "-Zsanitizer=thread -Cdebuginfo=2 -Cunsafe-allow-abi-mismatch=sanitizer"
6868
TSAN_OPTIONS: "second_deadlock_stack=1"
6969
run: |
7070
# Async crate with concurrent code
71-
cargo +nightly test \
71+
cargo +nightly test --target x86_64-unknown-linux-gnu \
7272
-p dash-spv --lib --tests

0 commit comments

Comments
 (0)