From 0f39887cdbd48c8204fc09a526380186781c785d Mon Sep 17 00:00:00 2001 From: Nugine Date: Sat, 12 Oct 2024 15:05:22 +0800 Subject: [PATCH] ci: enable cache on failure (#85) * ci: enable cache on failure * fix --- .github/workflows/e2e.yml | 3 ++- .github/workflows/rust.yml | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 533454f4..57535506 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -2,7 +2,6 @@ name: E2E on: workflow_dispatch: - push: pull_request: branches: [ "main" ] @@ -88,6 +87,8 @@ jobs: # components: rustfmt, clippy - uses: Swatinem/rust-cache@v2 + with: + cache-on-failure: true - name: run fs start working-directory: . diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 87129420..32fa4463 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -86,6 +86,8 @@ jobs: components: rustfmt, clippy - uses: Swatinem/rust-cache@v2 + with: + cache-on-failure: true - name: cargo fmt run: cargo fmt --all --check