Skip to content

Commit 1f8298b

Browse files
committed
Add address sanitizer to CI
1 parent 57a4dff commit 1f8298b

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
@@ -223,3 +223,15 @@ jobs:
223223
run: sudo apt-get install wine64 mingw-w64
224224
- name: Build and test
225225
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
226+
addr_san:
227+
name: Address sanitizer
228+
runs-on: ubuntu-latest
229+
steps:
230+
- name: Checkout repository
231+
uses: actions/checkout@v2
232+
with: {submodules: true}
233+
- name: Install Rust
234+
uses: actions-rs/toolchain@v1
235+
with: {toolchain: nightly, profile: minimal, override: true}
236+
- name: Run test with sanitizer
237+
run: env RUSTFLAGS="-Z sanitizer=address" cargo test --features hdf5-sys/static --target x86_64-unknown-linux-gnu --exclude hdf5-derive

0 commit comments

Comments
 (0)