Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Android Build
name: Build

on:
workflow_dispatch:
Expand Down Expand Up @@ -43,7 +43,7 @@ on:
push:
branches: [main]
paths:
- .github/workflows/android-build.yml
- .github/workflows/build.yml
- .gitmodules
- .npmrc
- app/**
Expand Down
4 changes: 2 additions & 2 deletions ci/distribution/updates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

## 发布方法

源码仓库的 Android Build 工作流选择 `main`、任务 `:app:verifyCiPreviewRelease`,勾选 `publish_release`,填写非空 Markdown 更新说明和可选 `previous_tag`。本次使用已发布的 `v1.12.2+17` 为基础;留空时选择补丁仓库中同一基础版本且低于目标的最新已公开 APK。普通构建保持 `publish_release=false`。
源码仓库的 [Build 工作流](../../../.github/workflows/build.yml)选择 `main`、任务 `:app:verifyCiPreviewRelease`,勾选 `publish_release`,填写非空 Markdown 更新说明和可选 `previous_tag`。本次使用已发布的 `v1.12.2+17` 为基础;留空时选择补丁仓库中同一基础版本且低于目标的最新已公开 APK。普通构建保持 `publish_release=false`。

工作流需要源码仓库的 Actions secret `OPERIT_DISTRIBUTION_TOKEN`,授予源码、补丁、资源仓库的 Contents 写入权限及源码仓库 Actions 读取权限。内置 `github.token` 不能向另外两个仓库发布。权限预检在签名构建前执行;缺少配置时明确失败。既有发行仓库和专用 secret 继续使用;本次保持 `complete_repository_migration=false`,不重复执行历史迁移清理。

发布脚本读取 APK 的真实版本,检查 Kong 包名、固定证书和递增内部版本号。所有应用版本均只发往补丁仓库,先完成草稿上传及核验再公开;源码仓库不发布应用副本。已有 Release 不覆盖。

当前 Android Build 发行步骤仅向统一更新仓库发布,不创建源码仓库版本标签,发行摘要也不再声明 sourceTag。源码提交和源码归档地址仍记录在正文与摘要中。发行仓库自己的 tag 继续承载 Release,已有标签不删除或移动。直接调用未变换的 publish_release.py 仍保留历史源码标签逻辑,正式发行应通过当前工作流。
当前 Build 发行步骤仅向统一更新仓库发布,不创建源码仓库版本标签,发行摘要也不再声明 sourceTag。源码提交和源码归档地址仍记录在正文与摘要中。发行仓库自己的 tag 继续承载 Release,已有标签不删除或移动。直接调用未变换的 publish_release.py 仍保留历史源码标签逻辑,正式发行应通过当前工作流。

## 不公开版本的准备

Expand Down
2 changes: 1 addition & 1 deletion ci/script/pr_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"tools/example_packages/sync_example_packages.py",
)
ANDROID_FULL_PATTERNS = (
".github/workflows/android-build.yml",
".github/workflows/build.yml",
".github/workflows/android-tests.yml",
".github/workflows/pr-check.yml",
".gitmodules",
Expand Down
2 changes: 1 addition & 1 deletion ci/test/test_pr_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def test_native_change_uses_full_lane(self) -> None:

def test_android_workflow_changes_use_full_lane(self) -> None:
for path in (
".github/workflows/android-build.yml",
".github/workflows/build.yml",
".github/workflows/android-tests.yml",
".github/workflows/pr-check.yml",
):
Expand Down
2 changes: 1 addition & 1 deletion docs/TODO/chore/distribution_integration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ status: implemented-user-verified

来源数量、顺序与提交可追溯性、资源 XML、重复资源、孤立翻译及 diff 空白检查已通过。对手动协调的 Kotlin 文件及原生围栏插件做了辅助语法扫描;静态检查不能代替 Android 编译和运行验证。

新增数据库联合迁移和 CSV 兼容回归,尚未运行。本轮不在本地执行 Android 构建或 JVM 测试,由本分支 [Android Build](https://github.com/3316891527/Operit/actions/workflows/android-build.yml?query=branch%3Afeat%2Fintegrated-distribution) 和 [Android Tests](https://github.com/3316891527/Operit/actions/workflows/android-tests.yml?query=branch%3Afeat%2Fintegrated-distribution) 工作流执行,实际通过与 APK 产出以对应运行结果为准。
新增数据库联合迁移和 CSV 兼容回归,尚未运行。本轮不在本地执行 Android 构建或 JVM 测试,由本分支 [Android Build](https://github.com/3316891527/Operit/actions/workflows/build.yml?query=branch%3Afeat%2Fintegrated-distribution) 和 [Android Tests](https://github.com/3316891527/Operit/actions/workflows/android-tests.yml?query=branch%3Afeat%2Fintegrated-distribution) 工作流执行,实际通过与 APK 产出以对应运行结果为准。

设备功能回归已按用户本次确认补录为通过。[聊天 UI 原有 216 项清单](../../feat/chat_ui_redesign/24-回归清单.md) 和本轮集成清单均保留,历史通过不等于本轮集成版本通过。

Expand Down
8 changes: 8 additions & 0 deletions docs/TODO/ci/workflow-publishing-sync/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,11 @@ pr-check.yml 将 pull_request.branches 从 development 改为 dev,保留事件
交付时派发工作分支 Debug 构建,不开启发行;受理和执行结果分别记录,派发后不等待或轮询 CI。下载工具消失的问题按维护者要求暂不检查。

[DONE] 源码修改与静态验证完成,远端同步与工作流受理另存交付收据。

## 当前构建工作流入口

构建工作流文件已由 `.github/workflows/android-build.yml` 改名为 `.github/workflows/build.yml`,Actions 显示名称为 `Build`。使用文件名派发时改为 `gh workflow run build.yml`;构建任务、手动输入、签名、发行目的地和固定资源发布逻辑沿用原配置。

工作流自身的 push 路径过滤、PR 变更范围识别及原有路径回归数据同步采用新文件名。历史说明中的旧文件名记录当时入口,当前操作统一使用 `build.yml`。

本轮仅进行 YAML 结构与前后等价核对、修改 Python 的 AST 解析及差异空白检查,没有执行本地编译、构建或测试。编号从实际创建的新工作流运行记录确认,文件改名本身不作为已重置的验证结果。