Event ·Single source

十条经验优化 GitHub Actions CI,让验证不再拖慢 AI 编程节奏

作者用 AI 编程后代码写得更快,但等 GitHub Actions 验证成了新瓶颈。他用一个提示词让 agent 全面优化了 Mole、Kaku 和 Pake 三个仓库的 CI。方法包括用 gh 拉取最近 50 次运行分析队列、setup、测试三阶段耗时,对 PR 开启 cancel-in-progress,用 paths 过滤纯文档提交,开启 setup-node 缓存和 Swatinem/rust-cache。还建议用预编译工具替代 go install、并行无依赖任务、把 lint 等任务迁到 Ubuntu,因为免费账户最多同时跑 5 个 macOS 作业。最后提醒连续本地构建两次验证缓存是否生效,并输出前后耗时对比。

Current read

AI 写代码快了,但等 CI 太磨人。这 10 条优化 GitHub Actions 的招直接抄提示词给 agent 就能用,macOS 配额那点也很实用。

2 sources44° AI heatLast updated 2026/11/2 13:57:00

Evidence

2 sources
Related source 1shao__meng
View source

Conflict check

Dedup data only shows that these sources discuss the same event, not that they agree. There is no structured supporting or refuting evidence yet, so no conflict is inferred automatically.