Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
CI: Add fuzz build check (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmakarov authored May 16, 2022
1 parent 8cbe93a commit 19284cc
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
rust: [stable, beta]
rust: [stable, beta, nightly]
steps:
- uses: actions/checkout@v1
- name: Setup Rust (rustup)
Expand All @@ -31,12 +31,14 @@ jobs:
run: |
cargo fmt --all -- --check
cargo clippy --all --tests -- --deny=warnings --deny=clippy::integer_arithmetic
if: matrix.rust != 'nightly'
shell: bash
- name: Build and test
run: |
export RUSTFLAGS="-D warnings"
cargo build --verbose
cargo test --verbose
if: matrix.rust != 'nightly'
shell: bash
- name: Check CLI
run: |
Expand All @@ -45,10 +47,18 @@ jobs:
cargo clippy --all --tests --manifest-path cli/Cargo.toml -- --deny=warnings --deny=clippy::integer_arithmetic
cargo build --manifest-path cli/Cargo.toml --verbose
cargo test --manifest-path cli/Cargo.toml --verbose
if: matrix.rust != 'nightly'
shell: bash
- name: Check fuzz
run: |
export RUSTFLAGS="-D warnings"
cargo install cargo-fuzz
cargo fuzz build
if: matrix.rust == 'nightly' && matrix.os != 'windows-latest'
shell: bash
- name: Benchmark
run: RUSTFLAGS="-D warnings" cargo bench -- --nocapture
if: matrix.rust == 'nightly'
if: matrix.rust == 'nightly' && matrix.os != 'windows-latest'
shell: bash

release:
Expand Down

0 comments on commit 19284cc

Please sign in to comment.