From 9d1e29ea6845fcf0c73293ae94a40b0947e76ad7 Mon Sep 17 00:00:00 2001 From: Hermes Date: Sat, 2 May 2026 20:38:58 -0700 Subject: [PATCH] debug: add lookup-only step to diagnose cache backend --- .gitea/actions/rust-cache/action.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitea/actions/rust-cache/action.yml b/.gitea/actions/rust-cache/action.yml index ccc9495..909f643 100644 --- a/.gitea/actions/rust-cache/action.yml +++ b/.gitea/actions/rust-cache/action.yml @@ -27,6 +27,20 @@ runs: echo "hash=$HASH" >> $GITHUB_OUTPUT echo "fingerprint=$HASH" >> $GITHUB_ENV + - name: Lookup cache (debug) + id: cache-lookup + uses: https://gitea.com/actions/cache@v3 + with: + path: ~/.cargo/registry + key: rust-linux-${{ steps.cache-key.outputs.hash }} + lookup-only: true + + - name: Show lookup result + shell: bash + run: | + echo "cache-hit (lookup): ${{ steps.cache-lookup.outputs.cache-hit }}" + echo "key used: rust-linux-${{ steps.cache-key.outputs.hash }}" + - name: Cache cargo + rustup id: cache uses: https://gitea.com/actions/cache@v3