Skip to content

Use the one flatbuffer to store all lists #61

Use the one flatbuffer to store all lists

Use the one flatbuffer to store all lists #61

Workflow file for this run

name: Sanity
on:
pull_request:
workflow_dispatch:
jobs:
sanity:
runs-on: ubuntu-latest
env:
# Deny warnings for all steps
# (changing this flag triggers a complete rebuild, so it's helpful to define it globally)
RUSTFLAGS: --deny warnings
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Cargo clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Cargo fuzz
run: .github/workflows/fuzz-all.sh
shell: bash
# audit dependencies for severe vulnerabilities
# (to deny warnings in the future, note that cargo audit requires additional arguments)
- name: Cargo audit
run: |
cargo install --force cargo-audit
cargo generate-lockfile
cargo audit
- name: Install nightly toolchain and rust-src (for asan)
run: |
rustup toolchain install nightly
rustup component add rust-src --toolchain nightly
- name: Cargo test 'adblock' package (asan)
run: |
RUST_BACKTRACE=1 RUSTFLAGS="-Z sanitizer=address" \
RUSTDOCFLAGS="-Z sanitizer=address" \
cargo +nightly test -Zbuild-std --target x86_64-unknown-linux-gnu
- name: Cargo test 'adblock' package (asan, release)
run: |
RUST_BACKTRACE=1 RUSTFLAGS="-Z sanitizer=address" \
RUSTDOCFLAGS="-Z sanitizer=address" \
cargo +nightly test -Zbuild-std --release --all-features \
--target x86_64-unknown-linux-gnu