Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Add caching to MSRV and unused-deps jobs (#29)

Maximilian Roosc1ef12dad50e
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1c37e0141..2d46c02fe 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -179,6 +179,12 @@ jobs:
- name: πŸ“‚ Checkout code
uses: actions/checkout@v5
+ - name: πŸ’° Cache
+ uses: Swatinem/rust-cache@v2
+ with:
+ prefix-key: msrv-${{ hashFiles('Cargo.lock') }}
+ save-if: ${{ github.ref == 'refs/heads/main' }}
+
- uses: baptiste0928/cargo-install@v3
with:
crate: cargo-msrv
@@ -198,6 +204,12 @@ jobs:
# cargo-udeps requires nightly; update date periodically
- run: rustup override set nightly-2025-11-10
+ - name: πŸ’° Cache
+ uses: Swatinem/rust-cache@v2
+ with:
+ prefix-key: udeps-${{ hashFiles('Cargo.lock') }}
+ save-if: ${{ github.ref == 'refs/heads/main' }}
+
- uses: baptiste0928/cargo-install@v3
with:
crate: cargo-udeps