1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
name: Rust
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
features: ["--no-default-features", "--all-features"]
steps:
- uses: actions/checkout@v3
- name: Run tests
run: cargo test --all --verbose ${{ matrix.features }}
fuzz:
runs-on: ubuntu-latest
strategy:
matrix:
fuzz_target: ["two_way", "four_way"]
steps:
- uses: actions/checkout@v3
- run: rustup install nightly
name: Install nightly Rust
- run: cargo install cargo-fuzz
name: Install `cargo fuzz`
- run: cargo fuzz --version
name: Query `cargo fuzz` version
- run: cargo +nightly fuzz run ${{ matrix.fuzz_target }} -- -max_total_time=300 -rss_limit_mb=4096
name: Run `cargo fuzz`
check_benches:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: cargo check --all --benches
|