mirror of
https://github.com/fromchat-messenger/app.git
synced 2026-09-22 19:15:05 +03:00
727aba5bb6
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>
22 lines
765 B
YAML
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-
|