From 3e2adfdcc7c19403279b7d3b24508d5fb4402b20 Mon Sep 17 00:00:00 2001 From: Boshen Date: Mon, 21 Oct 2024 12:00:18 +0800 Subject: [PATCH] ci: use another cache for clippy (#6726) closes #6715 --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 05688973c..b9ac9c65f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -176,7 +176,8 @@ jobs: - uses: taiki-e/checkout-action@v1 - uses: Boshen/setup-rust@main with: - cache-key: warm + save-cache: ${{ github.ref_name == 'main' }} + cache-key: clippy components: clippy tools: ast-grep - run: cargo lint -- -D warnings