Skip to content

Commit

Permalink
Try on push
Browse files Browse the repository at this point in the history
  • Loading branch information
metasim committed May 16, 2023
1 parent beb6fac commit d9584df
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/sanitizer.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Sanitizers

on:
pull_request: {}
push:
paths:
- '**/sanitizer.yml'
workflow_dispatch: {}

jobs:
Expand Down Expand Up @@ -30,7 +32,6 @@ jobs:
run: |
rustup toolchain install nightly --profile minimal --component rust-src
rustup override set nightly
cargo install cargo-careful
- name: Get target triple
run: |
Expand All @@ -45,11 +46,13 @@ jobs:
ASAN_OPTIONS: verbose=1:atexit=1:detect_stack_use_after_return=1:strict_string_checks=1:detect_leaks=0
run: cargo test -Zbuild-std --all --target ${{ env.TARGET }}

- name: Run tests with memory sanitizer
env:
RUSTFLAGS: -Z sanitizer=memory
RUSTDOCFLAGS: -Z sanitizer=memory
run: cargo test -Zbuild-std --target ${{ env.TARGET }}
# - name: Run tests with memory sanitizer
# env:
# RUSTFLAGS: -Z sanitizer=memory
# RUSTDOCFLAGS: -Z sanitizer=memory
# run: cargo test -Zbuild-std --target ${{ env.TARGET }}

- name: Run tests with careful
run: cargo careful test --all -Zcareful-sanitizer
run: |
cargo install cargo-careful
cargo careful test --all -Zcareful-sanitizer

0 comments on commit d9584df

Please sign in to comment.