Skip to content

Commit 675d1b3

Browse files
committed
Add address sanitizer to CI
1 parent 49053fd commit 675d1b3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,3 +232,15 @@ jobs:
232232
run: sudo apt-get install wine64 mingw-w64
233233
- name: Build and test
234234
run: env CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUNNER=wine64 cargo test --features hdf5-sys/static --target x86_64-pc-windows-gnu -- --skip test_compile_fail
235+
addr_san:
236+
name: Address sanitizer
237+
runs-on: ubuntu-latest
238+
steps:
239+
- name: Checkout repository
240+
uses: actions/checkout@v2
241+
with: {submodules: true}
242+
- name: Install Rust
243+
uses: actions-rs/toolchain@v1
244+
with: {toolchain: nightly, profile: minimal, override: true}
245+
- name: Run test with sanitizer
246+
run: env RUSTFLAGS="-Z sanitizer=address" cargo test --features hdf5-sys/static --target x86_64-unknown-linux-gnu --workspace --exclude hdf5-derive

0 commit comments

Comments
 (0)