Skip to content

ci(android): 缩短 APK 构建墙钟并修复缓存回写 - #1106

Closed
HKLHaoBin wants to merge 3 commits into
Open-Less:betafrom
HKLHaoBin:perf/1103-android-build-time
Closed

HKLHaoBin wants to merge 3 commits into
Open-Less:betafrom
HKLHaoBin:perf/1103-android-build-time

Conversation

@HKLHaoBin

Copy link
Copy Markdown
Collaborator

摘要

Fixes #1103.

按调研顺序修复 Android APK 工作流墙钟:先恢复 Cargo/Gradle 缓存生命周期,再默认单 ABI dispatch,正式 tag 全 ABI 并行,并提供可选快速 profile。

修复 / 新增 / 改进

  • 移除 artifact 上传前清盘,避免在 rust-cache / setup-gradle post-save 之前删掉 target、Cargo registry 与 Gradle caches;缓存键升级为 v1-rust-android-1103
  • 定位首个 ABI 双编译:Tauri plugin-init + android-studio-script(不绕过 Gradle/native)
  • workflow_dispatch 默认只编 aarch64,可输入 ABI 列表或 all;tag 按 ABI matrix 并行,publish-android-release 汇总校验四 ABI 后再签签名与 updater manifest
  • dispatch 可选 fast_profile(关 LTO、codegen-units=16);tag 强制不走快速 profile,并保留 beta draft 协调
  • 补充 ABI/collect 脚本与契约测试;顺带加固 delayed_completed_callback_cannot_reset_or_observe_a_new_session 的 Busy 重试,避免 Linux CI 偶发失败

兼容

  • 不包含:破坏性 API / 用户数据迁移 / 正式 release profile 默认值变更
  • 对现有用户 / 本地环境 / 构建流程的影响:本地默认仍可通过 OPENLESS_ANDROID_TARGETS 编全 ABI;日常 dispatch 默认变快(仅 arm64);tag 产物与签名/manifest 完整性要求不变

测试计划

…le (Open-Less#1103)

Stop wiping Cargo/Gradle/target before cache post-save, bump rust-cache key, default dispatch to aarch64 with optional ABIs, parallelize tag builds per ABI, and allow a dispatch-only fast release profile.
…-callback test

Align with the neighboring cancel-reply test so Linux CI does not flake when the first session has not fully released yet.
…I test

The fingerprint contract test still called disconnected_app/rendered_text/remote_ui after the Core 2.0 UI refactor removed them, which broke Linux egui CI on PRs.
HKLHaoBin added a commit to HKLHaoBin/openless that referenced this pull request Sep 26, 2026
Need android-abi-matrix / run-android-tauri-build / collect-android-split-apks
and package.json npm scripts so the optimized android-apk.yml can run on the Open-Less#1067 tree.
@appergb

appergb commented Sep 26, 2026

Copy link
Copy Markdown
Collaborator

Android APK 工作流加速与缓存回写修复已随 2.0.0-Beta.3 集成进入 beta 分支(提交 51f6f4c),代码已实际合入,此处补关。#1103 一并关闭。感谢贡献!

@appergb appergb closed this Sep 26, 2026
HKLHaoBin added a commit to DepengWang/openless that referenced this pull request Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci(android): Android APK 工作流墙钟偏长(串行 4 ABI + 清盘破坏 Cargo/Gradle 缓存回写)

2 participants