Cache cargo registry and build artifacts in udeps workflow
https://claude.ai/code/session_01RnYQHGtVmViNLvadCJNZ38
change
commit 74197d25ddcf5786126f18eab0cfb246a389ce4f
author Claude <noreply@anthropic.com>
date
parent 7064de88
diff --git a/.github/workflows/udeps.yml b/.github/workflows/udeps.yml
index 6fbce7d..880606d 100644
--- a/.github/workflows/udeps.yml
+++ b/.github/workflows/udeps.yml
@@ -18,5 +18,15 @@ jobs:
         with:
           persist-credentials: false
       - run: rustup toolchain install nightly --no-self-update
+      - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
+        with:
+          path: |
+            ~/.cargo/bin/
+            ~/.cargo/registry/index/
+            ~/.cargo/registry/cache/
+            ~/.cargo/git/db/
+            target/
+          key: ${{ runner.os }}-udeps-${{ hashFiles('**/Cargo.lock') }}
+          restore-keys: ${{ runner.os }}-udeps-
       - run: cargo install cargo-udeps --locked
       - run: cargo +nightly udeps --workspace