Event ·Multi-source

用 Agent 优化 GitHub Actions CI:10 条提速实践分享

开发者 Tw93 分享了用 AI Agent 对 Mole、Kaku、Pake 三个仓库的 GitHub Actions CI 提速的完整提示词。做法包括先用 gh 拉最近 50 次运行数据,把每个 job 拆成排队、准备、测试三段找瓶颈。具体手段有 cancel-in-progress 取消旧运行、paths 过滤文档提交、setup-node 开缓存、Rust 用 Swatinem/rust-cache、预编译工具替代 go install 现场编译、非依赖 job 并行等。还提到免费账号 macOS 最多同时跑 5 个,不挑系统的任务应移到 Ubuntu。

Current read

Tw93 把自己给 Mole、Kaku、Pake 三个仓库做 CI 提速的提示词原样贴出来了,从找瓶颈到缓存、并行一共 10 条,直接 copy 给 Agent 就能用,GitHub 用户建议收下。

3 sources63° AI heatLast updated 2026/11/1 07:42:15

Evidence

3 sources
Related source 1marktechpost
View source
Related source 2shao__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.