rust-imap/.github/workflows/asan.yml
Jon Gjengset 71c2048cc0 mv github .github
This should make it possible to have rust-ci-conf as a remote you merge
from.
2022-09-18 11:44:59 -07:00

24 lines
694 B
YAML

on:
push:
branches: [main]
pull_request:
name: Address sanitizer
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- uses: actions/checkout@v3
- name: cargo test -Zsanitizer=address
uses: actions-rs/cargo@v1
with:
command: test
# only --lib --tests b/c of https://github.com/rust-lang/rust/issues/53945
args: --lib --tests --all-features --target x86_64-unknown-linux-gnu
env:
ASAN_OPTIONS: "detect_odr_violation=0:detect_leaks=0"
RUSTFLAGS: "-Z sanitizer=address"