perf(ci): 缓存已校验的 Velopack 原生依赖 (#10)
Gitea CI / Check code and tests (push) Successful in 6m26s
Gitea CI / Build Windows x64 app (push) Successful in 3m23s
Gitea CI / Build Android APK (push) Successful in 4m14s
Gitea CI / Audit and package Windows x64 (push) Successful in 1m24s
Gitea CI / Assemble and validate CI artifacts (push) Successful in 49s
Gitea CI / Gitea CI passed (push) Successful in 2s

This commit was merged in pull request #10.
This commit is contained in:
lingjhf committed 2026-10-06 16:43:14 +00:00
1 parent 4a759d81a6
commit 0ecf920669
5 files changed
+386

No files matched your search

+12
View File
@@ -30,6 +30,18 @@ enabled for CI. Do not clear these caches between runs. Each job must have its o
checkout; do not share a Flutter `build/` or `.dart_tool/` directory between jobs.
With an ephemeral runner, these user directories must be persisted separately.
The Windows compilation job runs `tool/windows/native_cache.py` after locked Pub
resolution. It reads the Velopack version and SHA256 from the resolved deskup
package and persists its ZIP in `%LOCALAPPDATA%/Cutdex/ci-tools/native/`, keyed by
both values. Every reuse verifies the digest; corrupt files are replaced only
after a verified download. OS file locks coordinate concurrent jobs, and atomic
replacement prevents interrupted downloads from becoming cache hits. Temporary
network failures retry at most three times. `DESKUP_VELOPACK_ARCHIVE` points CMake
at the verified local ZIP, where the SDK performs its own hash check again.
An explicitly supplied offline archive is validated and can populate this cache.
Version or hash changes use a separate file; no checkout-local `_deps` directory
is shared. Persist this user cache too when using ephemeral runners.
The local `prepare-flutter` action owns cache setup, Flutter version validation,
optional Java configuration and locked dependency resolution for the quality,
Android and Windows compilation jobs. `.fvmrc` is the shared local/CI Flutter