Skip to content

Go CLI: add support for windows, linux, macos - #16184

Merged
JinHai-CN merged 1 commit into
infiniflow:mainfrom
Haruko386:mutex
Jun 18, 2026
Merged

JinHai-CN merged 1 commit into
infiniflow:mainfrom
Haruko386:mutex

Conversation

@Haruko386

Copy link
Copy Markdown
Member

What problem does this PR solve?

As title

Type of change

  • New Feature (non-breaking change which adds functionality)

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 18, 2026
@coderabbitai

coderabbitai Bot commented Jun 18, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e971190c-513b-433b-aee9-d853cd7da4bb

📥 Commits

Reviewing files that changed from the base of the PR and between 20d1164 and 45658cd.

📒 Files selected for processing (1)
  • .github/workflows/release.yml

📝 Walkthrough

Walkthrough

The release workflow is updated to stage office_oxide.h at the flat include/ path (via symlink on Unix, file copy on Windows) before CGO builds. Both Unix and Windows CLI build steps gain expanded include paths in CGO_CFLAGS, explicit environment variable assignments, and debug output for the computed prefix and flags.

Changes

office_oxide CGO Header and Flag Fix

Layer / File(s) Summary
Header staging — Unix symlink and Windows copy
.github/workflows/release.yml
Unix job symlinks include/office_oxide_c/office_oxide.h to include/office_oxide.h and verifies the file exists; Windows job copies the same header to include\office_oxide.h.
CGO flag wiring and debug output
.github/workflows/release.yml
Unix build adds both include and include/office_oxide_c to cgo_cflags, echoes debug values, and passes CGO_CFLAGS into the go build invocation. Windows build assigns $env:CGO_CFLAGS, $env:CGO_LDFLAGS, GOOS, and GOARCH from officeOxidePrefix and emits Write-Host debug output.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

  • infiniflow/ragflow#16078: Modifies the same release workflow CGO build section for office_oxide header verification and CGO_CFLAGS/CGO_LDFLAGS setup.
  • infiniflow/ragflow#16082: Also changes the same .github/workflows/release.yml Unix/Windows CLI build logic for office_oxide native headers and CGO_* flags.

Suggested labels

ci, size:XS

Poem

🐇 A header lost, a symlink found,
The compiler flags now spin around.
On Windows we copy, on Unix we link,
CGO_CFLAGS no longer on the brink!
Debug echoes cheer throughout the build,
The rabbit hops on—release fulfilled! 🎉

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The PR description is incomplete. While it includes the required 'Type of change' section with the appropriate checkbox selected, the 'What problem does this PR solve?' section lacks substantive detail, containing only 'As title' as a placeholder. Expand the problem statement to explain why cross-platform support is needed, what issues it resolves, and any relevant context or dependencies.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main objective of the PR - adding cross-platform support (Windows, Linux, macOS) for the Go CLI tool through updated build workflow configuration.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Haruko386 Haruko386 added the ci Continue Integration label Jun 18, 2026
@Haruko386
Haruko386 marked this pull request as draft June 18, 2026 07:47
@Haruko386
Haruko386 marked this pull request as ready for review June 18, 2026 07:47
@JinHai-CN
JinHai-CN merged commit fc1555a into infiniflow:main Jun 18, 2026
6 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants