From 1f2238f0a84cc2de200543292ad20b58c6b08f17 Mon Sep 17 00:00:00 2001 From: Jonathan Behrens Date: Sat, 24 Feb 2024 18:01:27 -0800 Subject: [PATCH] Cache registry cache in cargo-afl CI job (#2159) --- .github/workflows/rust.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 848d176c9e..1792c2906b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -120,9 +120,16 @@ jobs: - uses: dtolnay/rust-toolchain@nightly - name: install-deps run: sudo apt-get -y install clang llvm + - name: Cache Cargo Registry + uses: Swatinem/rust-cache@v2 + with: + cache-targets: false + cache-all-crates: true + cache-on-failure: true + - name: Install cargo-afl + run: cargo install --locked cargo-afl - name: build run: | - cargo install cargo-afl cd fuzz-afl cargo check --bin reproduce_webp cargo check --bin reproduce_pnm