From 68777e2e6633cbc3492cb801f5fc7d8d449f233a Mon Sep 17 00:00:00 2001 From: Thomas de Zeeuw Date: Sat, 4 Feb 2023 15:58:58 +0100 Subject: [PATCH] Enable testing with sanitizers on the CI --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a9a4731..07dde910 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -139,6 +139,24 @@ jobs: run: cargo install --debug cargo-hack - name: Check all targets run: make check_all_targets + Sanitizer: + runs-on: ubuntu-latest + timeout-minutes: 10 + strategy: + fail-fast: false + matrix: + sanitizer: [address, leak, memory, thread] + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + - name: Add rust source + run: rustup component add rust-src + - name: Run tests with sanitizer + run: make test_sanitizer SAN=${{ matrix.sanitizer }} # Single job required to merge the pr. Passed: runs-on: ubuntu-latest