Skip to content

Commit

Permalink
CI: use stable Rust for fuzzing
Browse files Browse the repository at this point in the history
  • Loading branch information
Tpt committed Oct 18, 2024
1 parent e26056c commit 339e058
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update && rustup component add rustfmt
- run: rustup component add rustfmt
- run: cargo fmt -- --check

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update && rustup override set 1.81.0 && rustup component add clippy
- run: rustup component add clippy
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --all-targets -- -D warnings -D clippy::all
- run: cargo clippy --all-targets --all-features -- -D warnings -D clippy::all
Expand All @@ -31,7 +31,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update
- uses: Swatinem/rust-cache@v2
- run: cargo build --all-features
- run: cargo test --verbose
Expand All @@ -41,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update && rustup override set 1.70.0 && rustup toolchain install nightly
- run: rustup override set 1.70.0 && rustup toolchain install nightly
- uses: Swatinem/rust-cache@v2
- run: cargo +nightly update -Z direct-minimal-versions
- run: cargo test
Expand All @@ -51,7 +50,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update && rustup override set 1.81.0
- uses: Swatinem/rust-cache@v2
- run: cargo doc --all-features --no-deps
env:
Expand All @@ -61,7 +59,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update
- uses: taiki-e/install-action@v2
with: { tool: cargo-deny }
- run: cargo deny check
Expand All @@ -72,7 +69,6 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- run: rustup update
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@v2
with: { tool: cargo-semver-checks }
Expand All @@ -92,7 +88,6 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- run: rustup update
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@v2
with: { tool: cargo-codspeed }
Expand All @@ -116,14 +111,13 @@ jobs:
with:
path: fuzz/corpus/${{ matrix.target }}
key: fuzz-${{ matrix.target }}
- run: rustup update && rustup toolchain install nightly
- uses: Swatinem/rust-cache@v2
- run: cargo install cargo-fuzz || true
- run: python3 build_corpus.py
working-directory: ./fuzz
if: steps.cache-corpus.outputs.cache-hit != 'true'
- run: cargo +nightly fuzz run ${{ matrix.target }} -- -max_total_time=200 -max_len=64
- run: cargo +nightly fuzz cmin ${{ matrix.target }}
- run: cargo +nightly fuzz run ${{ matrix.target }} --sanitizer none -- -max_total_time=200 -max_len=64
- run: cargo +nightly fuzz cmin ${{ matrix.target }} --sanitizer none
- uses: actions/upload-artifact@v4
if: failure()
with:
Expand All @@ -136,7 +130,6 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- run: rustup update
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@v2
with: { tool: cargo-llvm-cov }
Expand Down

0 comments on commit 339e058

Please sign in to comment.