Skip to content

CI 构建 ​

GitHub Actions 配置位于 .github/workflows/build-release.yml,由版本 Tag 触发;仓库当前只维护 apps/fn-deepseek-harness 一个 FPK 应用,构建由 build-app.yml 承担。

构建流程 ​

  1. prepare-release 创建或重置草稿 Release。
  2. 下载并验证 fnpack。
  3. 通过根 build 任务的 FPK 模式构建应用:pnpm exec fnos-dsh-cli build --fpk --app fn-deepseek-harness --skip-bundle-dsh-plugins(node-pty 使用上游 npm 包自带的平台预编译产物,构建不需要编译器,也不内置原生产物)。
  4. 将产物重命名为 fn-deepseek-harness-<Tag>-dsh-<DSH 基线>.fpk:Tag 段为项目版本(如 v6.0.0),DSH 基线段在构建期从 pnpm-workspace.yaml catalog 派生,不在 workflow 中硬编码。
  5. 上传构建产物并由根 release:notes 任务调用 changelogithub 生成 GitHub Release。

触发方式 ​

bash
pnpm run version -- patch
git push origin main
git push origin v<版本号>

推送 v* Tag 后,Actions 会自动开始构建。构建失败时,优先查看 build-dsh 任务的 Build fn-deepseek-harness FPK 步骤和 fnpack 输出。

新增应用检查 ​

新增应用需要确保:

  • apps/<appname>/manifest 存在且字段完整。
  • 应用目录不依赖本地未提交文件。
  • 生命周期脚本具有正确的执行权限。
  • 所有构建依赖都能在 GitHub Actions 环境中获取。
  • 在 build-release.yml 中接入新的构建任务;build-app.yml 只服务 fn-deepseek-harness。

基于 VitePress 构建