Skip to content

Commit

Permalink
Cache cargo-fuzz between invocations
Browse files Browse the repository at this point in the history
This will make multiple runs on the same day faster since they can
reuse the cache. Fuzzing uses nightly Rust, so the cache will expire
daily.
  • Loading branch information
mgeisler committed Jun 27, 2021
1 parent f2de8de commit 4a1f9bb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,16 @@ jobs:
- name: Install nightly Rust
run: rustup default nightly

- name: Get nightly Rust version
id: rustc-version
run: echo "::set-output name=version::$(rustc --version)"

- name: Cache cargo-fuzz
uses: actions/cache@v2
with:
path: ~/.cargo/bin/cargo-fuzz
key: cargo-fuzz-${{ steps.rustc-version.outputs.version }}

- name: Install cargo-fuzz
run: cargo install cargo-fuzz

Expand Down

0 comments on commit 4a1f9bb

Please sign in to comment.