From ba6b271bf4eae3593018657dcd60cefa55ecfdcd Mon Sep 17 00:00:00 2001 From: Nick Mitchell Date: Tue, 17 Feb 2026 10:35:31 -0500 Subject: [PATCH] ci: only use actions/cache for flash-attn cli builds Signed-off-by: Nick Mitchell --- .github/workflows/release-cli.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.yml index d24f1ebb..08b250a4 100644 --- a/.github/workflows/release-cli.yml +++ b/.github/workflows/release-cli.yml @@ -434,8 +434,8 @@ jobs: if: github.event_name == 'release' || matrix.platform.features == 'cuda' - name: Cache Cargo registry - # Skip flash-attn variants on PRs (only run on release) - if: github.event_name == 'release' || matrix.platform.features == 'cuda' + # Only use cache for flash-attn variants on releases (they take longer to build) + if: github.event_name == 'release' && matrix.platform.features != 'cuda' uses: actions/cache@v5 with: path: | @@ -447,8 +447,8 @@ jobs: linux-cargo-registry- - name: Cache Cargo build - # Skip flash-attn variants on PRs (only run on release) - if: github.event_name == 'release' || matrix.platform.features == 'cuda' + # Only use cache for flash-attn variants on releases (they take longer to build) + if: github.event_name == 'release' && matrix.platform.features != 'cuda' uses: actions/cache@v5 with: path: target/