perf(ci): cache verified Velopack native archives
Gitea CI / Check code and tests (pull_request) Successful in 8m8s
Gitea CI / Build Windows x64 app (pull_request) Successful in 2m9s
Gitea CI / Audit and package Windows x64 (pull_request) Successful in 1m5s
Gitea CI / Build Android APK (pull_request) Successful in 3m4s
Gitea CI / Assemble and validate CI artifacts (pull_request) Successful in 51s
Gitea CI / Gitea CI passed (pull_request) Successful in 2s

This commit is contained in:
lingjhf committed 2026-10-07 00:20:44 +08:00
1 parent 4a759d81a6
commit 8d1cfb5560
5 files changed
+386

No files matched your search

+4
View File
@@ -68,6 +68,10 @@ python tool/build.py windows --flavor development -- `
Gitea 开发仓库使用 `CUTDEX_WINDOWS_UPDATE_SOURCE=gitea` 和仓库 URL。
仅设置进程环境变量不会配置 Dart 更新源。正式版忽略开发 defines。
原生 SDK 离线缓存仍通过 `DESKUP_VELOPACK_ARCHIVE` 环境变量指定。
CI 会按已解析 deskup 的版本和 SHA256,将原生 ZIP 缓存到
`%LOCALAPPDATA%/Cutdex/ci-tools/native/`,后续构建校验后直接复用。
本地可运行 `python tool/windows/native_cache.py` 预热同一缓存;命令会输出
可供 `DESKUP_VELOPACK_ARCHIVE` 使用的文件路径。
```powershell
python -m unittest discover -s tool/gitea -p 'test_*.py'