Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
fix(ci): scope rust-check caches to main
Minh1411209546c72450b4
diff --git a/.github/workflows/rust-check.yml b/.github/workflows/rust-check.ymlindex 37d7df810..0406880dd 100644--- a/.github/workflows/rust-check.yml+++ b/.github/workflows/rust-check.yml@@ -1,8 +1,15 @@name: Rust Checkon:workflow_dispatch:+ # Caches are branch-scoped and only the default branch's are readable from+ # anywhere, so main has to run this to leave anything worth restoring.+ push:+ branches:+ - mainpull_request:+ # PRs open against main; the dev-only filter left this to manual dispatch.branches:+ - main- devconcurrency:@@ -44,6 +51,9 @@ jobs:with:workspaces: src-taurikey: ${{ matrix.name }}+ # Branches restore but never save: one 3.5GB cache set on main+ # rather than one per branch, which is what breached the 10GB cap.+ save-if: ${{ github.ref == 'refs/heads/main' }}- name: Install Tauri dependenciesif: matrix.tauri@@ -95,6 +105,7 @@ jobs:- uses: Swatinem/rust-cache@v2with:workspaces: src-tauri/${{ matrix.crate }}+ save-if: ${{ github.ref == 'refs/heads/main' }}- name: Install Tauri dependenciesrun: |