From ce9f6413f03ceeb80f4bf2cf6fb131021d5d5621 Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Sat, 14 Feb 2026 14:38:19 +0900 Subject: [PATCH] fuzzing.yml: Avoid non reusable cache generation --- .github/workflows/fuzzing.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/fuzzing.yml b/.github/workflows/fuzzing.yml index 133946c..c7e0599 100644 --- a/.github/workflows/fuzzing.yml +++ b/.github/workflows/fuzzing.yml @@ -21,15 +21,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@nightly - name: Install `cargo-fuzz` - run: cargo install cargo-fuzz + run: | + echo "RUSTC_BOOTSTRAP=1" >> "${GITHUB_ENV}" + echo "CARGO_INCREMENTAL=0" >> "${GITHUB_ENV}" + cargo install cargo-fuzz --locked - uses: Swatinem/rust-cache@v2 with: shared-key: "cargo-fuzz-cache-key" cache-directories: "fuzz/target" - name: Run `cargo-fuzz build` - run: cargo +nightly fuzz build + run: cargo fuzz build fuzz-run: needs: fuzz-build @@ -49,9 +51,11 @@ jobs: - { name: fuzz_side, should_pass: true } steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@nightly - name: Install `cargo-fuzz` - run: cargo install cargo-fuzz + run: | + echo "RUSTC_BOOTSTRAP=1" >> "${GITHUB_ENV}" + echo "CARGO_INCREMENTAL=0" >> "${GITHUB_ENV}" + cargo install cargo-fuzz --locked - uses: Swatinem/rust-cache@v2 with: shared-key: "cargo-fuzz-cache-key" @@ -66,7 +70,7 @@ jobs: shell: bash continue-on-error: ${{ !matrix.test-target.name.should_pass }} run: | - cargo +nightly fuzz run ${{ matrix.test-target.name }} -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0 + cargo fuzz run ${{ matrix.test-target.name }} -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0 - name: Save Corpus Cache uses: actions/cache/save@v5 with: