Skip to content

[0.7.0] 建立最小 GitHub Actions 验证 #52

Description

@nervouna

目标版本

0.7.0 · 全拼与中英混输质量

范围

仓库目前没有任何 GitHub Actions,所有验证只能在作者本机或经 scripts/mac-remote.py 的私有 Mac 上完成。建立最小 CI,让每个 PR 至少得到一次自动反馈:

  • ubuntu runner:Core/scripts/check-boundaries.sh --standalone、根包 swift build、cargo test(Core/Portable)、python3 -B scripts/tests/test_mac_remote.py。
  • macOS runner:仅跑 bash macOS/scripts/test.sh quick,不跑 all。
  • 触发路径排除纯文档改动,避免为 docs 提交占用 macOS 分钟数。

验收条件

  • PR 与 main 推送触发 ubuntu 作业,上述四项通过
  • macOS 作业在 macos-26 runner 上完成 test.sh quick,耗时与分钟消耗记录在 PR 中
  • 文档-only 改动不触发 macOS 作业
  • 失败时 PR 页面可直接看到失败单元

依赖与边界

不改变本机 test.sh 的行为;test.sh all 继续只在发布时手动运行。librime 二进制与词库准备步骤若无法在 runner 上复现,先把该单元排除并在工作流注释中说明。

完成记录

关闭前补充工作流链接与一次成功、一次失败运行的记录。

路线图:https://github.com/users/nervouna/projects/2

Activity

  1. changed the title [-]建立最小 GitHub Actions 验证[/-] [+][0.7.0] 建立最小 GitHub Actions 验证[/+] on Oct 8, 2026
  2. nervouna commented on Oct 8, 2026

    @nervouna
    OwnerAuthor

    完成记录(#57)

    工作流

    一次失败运行:https://github.com/nervouna/InkFlow/actions/runs/37725452756
    ai-runtime 在 AIRuntimeTests.swift:214 失败(500 ms 防抖截止以 40 ms 余量断言,共享 runner 守不住)。PR 页面显示 FAIL ai-runtime (18s) 与 file:line 注解。该单元已在工作流注释中说明并排除。

    一次成功运行:https://github.com/nervouna/InkFlow/actions/runs/37726038434
    macOS 作业 6m58s(冷缓存;约 1m45s 为 dependencies.sh + prepare-rime.sh)。ubuntu 三个作业 55s / 48s / 6s。仓库公开,timing API 两次均报告 billable.MACOS.total_ms = 0。

    说明:ubuntu 上无法对根包 swift build(InkFlowDomain 依赖 CryptoKit,App target 依赖 AppKit/InputMethodKit,Sparkle 为 xcframework,librime 为 macOS dylib),改为由完整的边界检查评估两份 manifest,编译覆盖由 macOS 作业提供。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions