Skip to content

Add fuzz to Nightly CI #6

Add fuzz to Nightly CI

Add fuzz to Nightly CI #6

Workflow file for this run

name: Nightly Cargo Fuzz
on:
schedule:
- cron: "0 0 * * *" # Runs every day at midnight
workflow_dispatch:
pull_request:
types:
- synchronize
- opened
- reopened
jobs:
cargo-fuzz:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rust and cargo-fuzz
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rust-src
- run: rustup install nightly
- run: rustup default nightly
- run: cargo install cargo-fuzz
- name: Build fuzz targets
run: cargo fuzz build
- name: Run Cargo Fuzz
run: |
cargo fuzz list | while read target; do
cargo fuzz run "$target" -- -max_total_time=30
done