fix(binding): 修复 darwin-x64 构建配置并添加验证脚本#18787
Conversation
Walkthrough为多个平台的 Rust 本机绑定构建命令添加显式 Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor "GitHub Actions Runner" as Runner
participant "publish.yml workflow" as Workflow
participant "scripts/verify-bindings.js" as Verifier
participant "Repo File System" as FS
Runner->>Workflow: 触发发布流程
Workflow->>Verifier: 运行 `node scripts/verify-bindings.js`
Verifier->>FS: 读取各 target 目录、package.json 与二进制文件
FS-->>Verifier: 返回存在/大小/内容信息
Verifier-->>Workflow: 返回成功或错误(exit 0/1)
Workflow-->>Runner: 根据返回继续或中止发布
sequenceDiagram
autonumber
actor "GitHub Actions Runner" as Runner
participant "build-rust-binding.yml" as BuildWF
participant "pnpm / docker" as Builder
participant "Rust Cross-Compiler" as RustBuild
Runner->>BuildWF: 启动构建工作流
BuildWF->>Builder: 调用 `pnpm build:binding:release --target <triple>`
Builder->>RustBuild: 触发对应目标的构建(本机或容器)
RustBuild-->>Builder: 生成绑定产物
Builder-->>BuildWF: 返回构建结果
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 分钟 Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
7225c3b to
15a4d32
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #18787 +/- ##
=======================================
Coverage 56.31% 56.31%
=======================================
Files 447 447
Lines 23352 23352
Branches 5794 5770 -24
=======================================
Hits 13150 13150
- Misses 8367 8377 +10
+ Partials 1835 1825 -10
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
15a4d32 to
9887704
Compare
这个 PR 做了什么? (简要描述所做更改)
问题原因:
这个 PR 是什么类型? (至少选择一个)
这个 PR 涉及以下平台:
Summary by CodeRabbit
发布说明
✏️ Tip: You can customize this high-level summary in your review settings.