feat(publish): add build-c and build-go workflows for Go SDK publishing#380
Merged
DorianZheng merged 2 commits intomainfrom Mar 14, 2026
Merged
feat(publish): add build-c and build-go workflows for Go SDK publishing#380DorianZheng merged 2 commits intomainfrom
DorianZheng merged 2 commits intomainfrom
Conversation
Add CI workflows and tooling to publish the Go SDK via standard `go get` + `go generate` + `go build` workflow: - build-c.yml: builds C SDK (libboxlite.a, .dylib/.so, boxlite.h), packages per-platform archives, uploads to GitHub Releases - build-go.yml: tests Go SDK with prebuilt library path, creates Go module tag (sdks/go/vX.Y.Z) on release for `go get` - Split CGO directives into build-tagged files: prebuilt is the default (no tags needed), dev requires -tags boxlite_dev - Add download tool (go generate) to fetch prebuilt libraries from GitHub Releases for end users
The default CGO directives (bridge_cgo_prebuilt.go) look for lib/include/boxlite.h which only exists after go generate. CI lint needs -tags boxlite_dev to use the repo header path, matching what make lint:go already does locally.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
build-c.ymlworkflow: builds C SDK archives (libboxlite.a, .dylib/.so, boxlite.h) per platform and uploads to GitHub Releasesbuild-go.ymlworkflow: tests Go SDK with prebuilt library path, creates Go module tag (sdks/go/vX.Y.Z) on release-tagsneeded), local dev requires-tags boxlite_devgo generatedownload tool to fetch prebuilt libraries from GitHub ReleasesAfter this, end users can install via:
Test plan
build-c.ymlviaworkflow_dispatch— verify archives containlib/libboxlite.a,lib/libboxlite.{dylib,so},include/boxlite.hbuild-go.ymlviaworkflow_dispatch— verify Go tests pass on both platformssdks/go/vX.Y.Ztag createdmake dev:goandmake test:unit:gowork locally with-tags boxlite_dev