Skip to content

Commit

Permalink
memory
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Oct 10, 2024
1 parent eab1bc5 commit 4c22304
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/sanitize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,14 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest] # No Windows support for sanitizers.
sanitizer: [address, thread, leak]
sanitizer: [address, thread, leak, memory]
exclude:
# Leak sanitizer is not supported on macOS.
- os: macos-latest
sanitizer: leak
# Memory sanitizer is not supported on macOS.
- os: macos-latest
sanitizer: memory
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -58,6 +61,7 @@ jobs:
RUST_LOG: trace
RUSTFLAGS: "-Z sanitizer=${{ matrix.sanitizer }}"
RUSTDOCFLAGS: "-Z sanitizer=${{ matrix.sanitizer }}"
ASAN_OPTIONS: detect_leaks=1
run: |
if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
sudo apt-get update
Expand Down

0 comments on commit 4c22304

Please sign in to comment.