@@ -24,12 +24,30 @@ jobs:
2424 - uses : dtolnay/rust-toolchain@stable
2525 - uses : Swatinem/rust-cache@v2
2626 with :
27- prefix-key : " v2 -rust"
27+ prefix-key : " v3 -rust"
2828 shared-key : " ${{ inputs.os }}"
2929 cache-on-failure : true
3030 cache-all-crates : true
31+ - name : Debug cache state (before build)
32+ run : |
33+ echo "=== target/ directory ==="
34+ ls -la target/ 2>/dev/null | head -20 || echo "No target dir"
35+ echo "=== fingerprint count ==="
36+ ls target/.fingerprint/ 2>/dev/null | wc -l || echo "No fingerprints"
37+ echo "=== registry/src ==="
38+ ls ~/.cargo/registry/src/ 2>/dev/null | head -5 || echo "No registry src"
39+ echo "=== sample dep fingerprint (memchr) ==="
40+ ls -la target/.fingerprint/memchr-* 2>/dev/null || echo "No memchr fingerprint"
41+ shell : bash
3142 - name : Build workspace
3243 run : cargo test --workspace --all-features --no-run ${{ inputs.exclude-crates && format('--exclude {0}', inputs.exclude-crates) || '' }}
44+ - name : Debug cache state (after build)
45+ run : |
46+ echo "=== fingerprint count ==="
47+ ls target/.fingerprint/ | wc -l
48+ echo "=== sample dep fingerprint (memchr) ==="
49+ ls -la target/.fingerprint/memchr-*
50+ shell : bash
3351 - name : Upload build artifacts
3452 uses : actions/upload-artifact@v4
3553 with :
@@ -54,15 +72,33 @@ jobs:
5472 - uses : dtolnay/rust-toolchain@stable
5573 - uses : Swatinem/rust-cache@v2
5674 with :
57- prefix-key : " v2 -rust"
75+ prefix-key : " v3 -rust"
5876 shared-key : " ${{ inputs.os }}"
5977 save-if : false
6078 cache-all-crates : true
79+ - name : Debug cache state (after cache restore, before artifact)
80+ run : |
81+ echo "=== target/ directory ==="
82+ ls -la target/ 2>/dev/null | head -20 || echo "No target dir"
83+ echo "=== fingerprint count ==="
84+ ls target/.fingerprint/ 2>/dev/null | wc -l || echo "No fingerprints"
85+ echo "=== registry/src ==="
86+ ls ~/.cargo/registry/src/ 2>/dev/null | head -5 || echo "No registry src"
87+ echo "=== sample dep fingerprint (memchr) ==="
88+ ls -la target/.fingerprint/memchr-* 2>/dev/null || echo "No memchr fingerprint"
89+ shell : bash
6190 - name : Download build artifacts
6291 uses : actions/download-artifact@v4
6392 with :
6493 name : build-${{ inputs.os }}
6594 path : target/
95+ - name : Debug state (after artifact download)
96+ run : |
97+ echo "=== fingerprint count ==="
98+ ls target/.fingerprint/ | wc -l
99+ echo "=== sample dep fingerprint (memchr) ==="
100+ ls -la target/.fingerprint/memchr-*
101+ shell : bash
66102 - uses : actions/setup-python@v5
67103 with :
68104 python-version : " 3.12"
0 commit comments