Skip to content

fix(ci): 校验发布输入并增加构建检查 - #36

Open
yamakze wants to merge 2 commits into
BPTPW:mainfrom
yamakze:fix/ci-release-input-pr
Open

yamakze wants to merge 2 commits into
BPTPW:mainfrom
yamakze:fix/ci-release-input-pr

Conversation

@yamakze

@yamakze yamakze commented Sep 24, 2026 •

Copy link
Copy Markdown

改动

  • 将工作流输入 tag_name 通过环境变量传给构建步骤,并在执行 Xcode 前校验版本号,避免输入被拼入 shell 脚本。
  • 新增 Scripts/build-app.sh,供本地和发布工作流共用未签名 IPA 构建流程。
  • 新增 Scripts/compile-and-run,在可用的 iOS 模拟器中构建、安装并启动应用。
  • 新增独立的 pull_request 工作流,固定 Xcode 26.6,检查 Release IPA 构建和 Debug 模拟器编译;工作流仅授予仓库内容读取权限,不保留检出凭据。

验证

  • bash -n Scripts/build-app.sh Scripts/compile-and-run、工作流 YAML 解析和 git diff --check 通过。
  • 恶意版本号在调用 Xcode 前被拒绝,未执行注入命令,也未写入发布环境变量。
  • 使用模拟 Xcode 产物验证 IPA 包含 Payload/PiliPod.app;使用模拟设备验证选择、启动、构建、安装和运行顺序。
  • 本机 Xcode 26.2 编译上游源码时遇到类型检查错误。上游相同源码在 Xcode 26.6 的既有发布工作流中成功。
  • 本 PR 的新构建检查 已触发,但目前为 action_required,没有执行构建作业;需要在 GitHub Actions 上实际运行并通过后才能认定云端验证完成。

@yamakze yamakze changed the title fix(ci): 校验发布版本并补充构建脚本 fix(ci): 校验发布输入并增加构建检查 Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant