Skip to content

Add weekly sanitizer run to CI #4

Add weekly sanitizer run to CI

Add weekly sanitizer run to CI #4

Workflow file for this run

name: Sanitizers
on:
pull_request:
branches:
- master
paths:
- '.github/workflows/sanitizers.yml'
schedule:
- cron: '12 07 * * 2' # weekly on Tuesday
jobs:
sanitizers:
strategy:
matrix:
target:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: macos-latest
target: x86_64-apple-darwin
- os: windows-latest
target: x86_64-pc-windows-gnu
- os: ubuntu-latest
target: wasm32-wasip1
sanitizer:
- address
runs-on: ${{ matrix.target.os }}
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -D warnings -Zsanitizer=${{ matrix.sanitizer }}
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
run: |
rustup toolchain install nightly
rustup override set nightly
rustup target add --toolchain nightly ${{ matrix.target.target }}
- name: Build
run: cargo build
- name: Run tests
run: cargo test --verbose --all-features --no-fail-fast