Files
app/.github/actions/cache-windows-rust-tools/action.yml
T
denis0001-dev 727aba5bb6 Fix Windows Rust CI cache: full target, Cargo registry, explicit save.
Cache the entire windows-setup target tree plus ~/.cargo; split restore/save; skip cargo build when all release binaries are present.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 16:13:24 +03:00

22 lines
765 B
YAML

name: Restore Windows Rust build cache
description: Restore Cargo registry, git checkouts, and the windows-setup target directory
outputs:
cache-hit:
description: Whether an exact cache key match was restored
value: ${{ steps.cache.outputs.cache-hit }}
runs:
using: composite
steps:
- uses: actions/cache/restore@v5
id: cache
with:
path: |
~/.cargo/registry
~/.cargo/git
app/desktop/windows-setup/target
key: windows-rust-${{ runner.os }}-v2-${{ hashFiles('app/desktop/windows-setup/Cargo.lock', 'app/desktop/windows-setup/Cargo.toml', 'app/desktop/windows-setup/**/src/**', 'app/desktop/windows-setup/**/build.rs') }}
restore-keys: |
windows-rust-${{ runner.os }}-v2-