chore: optimize go build workflow#115
Merged
Merged
Conversation
walterbm-cohere
approved these changes
Jun 5, 2026
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.
This PR updates the Linux build process in the
go-lib-release.ymlworkflow, replacing Docker-based builds with direct Rust compilation, and introduces caching for faster builds.Linux Build Process Update:
docker/setup-qemu-action,docker/setup-buildx-action, and associated commands).cargo build --release --features tkzrs.Caching for Faster Builds:
cargo registry,cargo index, andcargo buildto speed up subsequent builds.Cargo.lockfile hash.Runner Configuration:
docker_platformwithrunnerin the matrix strategy.runs-onto use the matrix runner (${{ matrix.runner }}).Darwin Build Caching:
Note
Medium Risk
Linux artifacts are produced differently than local
make release-linux-*(still Docker-based), so CI vs developer parity should be verified for both architectures.Overview
Optimizes the go library release workflow by replacing Linux Docker/QEMU cross-builds with native
cargo buildon matrix runners (ubuntu-24.04-armfor arm64,ubuntu-latestfor x86_64), matching the existing Darwin job pattern.Adds Cargo registry, git, and
targetcaches on both Linux and Darwin jobs (keyed by platform andCargo.lock) to speed repeat releases. Linux packaging now copieslibcohere_melody.afromtarget/releaseand tars it locally instead of building viarelease/Dockerfileand extracting from a container.Reviewed by Cursor Bugbot for commit c7d9257. Bugbot is set up for automated code reviews on this repo. Configure here.