Skip to content

启用 native day merge 并支持 windows/mac 构建 - #65

Merged
jing2uo merged 1 commit into
mainfrom
feat/native-day-merge-cross-platform
Apr 14, 2026
Merged

jing2uo merged 1 commit into
mainfrom
feat/native-day-merge-cross-platform

Conversation

@jing2uo

@jing2uo jing2uo commented Apr 14, 2026

Copy link
Copy Markdown
Owner
  • tdx/datatool.go: windows/mac 走 NativeDayMerge,min/tick 打印提示后跳过; linux 保持原 datatoolExec 逻辑
  • tdx/merge.go: 移除进度 emoji 日志,非致命路径静默 continue,和 datatool 调用时的安静行为对齐
  • .goreleaser.yaml: 启用 partial split 模式,goos 扩展到 linux/darwin/windows, prerelease: auto 识别 rc/beta tag,ghcr latest 仅跟随正式版
  • .github/workflows/release.yaml: tag 触发,4 路 matrix 原生构建后 merge 发布
  • .github/workflows/ci.yaml: 新增 snapshot 工作流,push/PR/手动触发, 跑测试 + 4 平台 snapshot 构建作为 artifact

@jing2uo

jing2uo commented Apr 14, 2026

Copy link
Copy Markdown
Owner Author

Hi @Abelonx, would you mind taking another look at this branch?

First off, thanks again for your work on the native day-merge implementation. I had to temporarily revert the call site earlier because I was rushing to fix some unrelated bugs and hadn't figured out cross-platform builds yet — sorry about that. I've now reorganized things:

  • Windows and macOS now go through your merge.go implementation (NativeDayMerge) for the day subcommand.

  • min / tick on Windows/macOS print a warning and skip, since those two subcommands haven't been ported natively yet.

  • Linux continues to use the embedded datatool binary via datatoolExec to keep the stable path untouched for now.

  • Logging inside merge.go has been trimmed to stay quiet like the original datatool invocation — non-fatal skips are silent, only real errors are returned.

  • Added a matrix CI workflow (ci.yaml) that runs snapshot builds on all 4 targets (linux/amd64, darwin/amd64, darwin/arm64, windows/amd64) for every PR, plus a split-merge release workflow that supports pre-release tags (vX.Y.Z-rc.N).

The changes are on branch feat/native-day-merge-cross-platform. Main files to review:

  • tdx/datatool.go — OS dispatch logic

  • tdx/merge.go — logging cleanup (your original logic is unchanged otherwise)

Any suggestions welcome, especially around:

  • Whether the silent-skip behavior in merge.go loses anything important for debugging

  • Edge cases you've hit on Windows/macOS with actual TDX data that I might not be aware of

Would really appreciate it if you could test this on your Mac/Windows setup and share any feedback. Thanks!

@jing2uo

jing2uo commented Apr 14, 2026

Copy link
Copy Markdown
Owner Author

link: #60

- tdx/datatool.go: windows/mac 走 NativeDayMerge;min/tick 提示后跳过;
  linux 保持 datatoolExec 不变
- tdx/merge.go: 清理进度日志,非致命路径静默 continue
- .github/workflows/ci.yaml: 新增 snapshot 工作流,push/PR 触发,
  3 平台 go test + go build
- .github/workflows/release.yaml: tag 触发,3 平台 matrix 构建 + 打包 +
  gh release + docker push ghcr;tag 含 "-" 识别为 pre-release

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jing2uo
jing2uo force-pushed the feat/native-day-merge-cross-platform branch from ffea955 to 8b6b4ca Compare April 14, 2026 02:10
@jing2uo
jing2uo merged commit 41bfa8a into main Apr 14, 2026
@jing2uo
jing2uo deleted the feat/native-day-merge-cross-platform branch April 14, 2026 02:23
rains31 pushed a commit to rains31/tdx2db that referenced this pull request Nov 5, 2026
…s-platform

启用 native day merge 并支持 windows/mac 构建
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