ci(cli): build bitfun-cli per release and notify homebrew-tap#851
Open
harryfan1985 wants to merge 1 commit into
Open
ci(cli): build bitfun-cli per release and notify homebrew-tap#851harryfan1985 wants to merge 1 commit into
harryfan1985 wants to merge 1 commit into
Conversation
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.
Refs #757
Adds
.github/workflows/cli-package.ymlwhich, on every published release:bitfun-clinatively on four runners —macos-15(arm64),macos-15-intel(x86_64),ubuntu-latest(x86_64),ubuntu-24.04-arm(aarch64) — avoiding cross-compilation entirely.--versionand--helpsmoke tests to catch dynamic-linker / missing-lib failures before publishing.bitfun-cli-<version>-<rust-target>.tar.gz(binary + LICENSE + README +themes/+prompts/), generates a per-archive.sha256and a combinedSHA256SUMS.softprops/action-gh-release@v2.repository_dispatchtoGCWing/homebrew-tapso thebitfun-cliformula can auto-bump. Safe no-op whenHOMEBREW_TAP_DISPATCH_TOKENis not configured — forks and the pre-tap window are unaffected.The workflow shape (triggers, prepare job, version-resolution logic, concurrency group naming) mirrors the existing
desktop-package.ymlfor consistency.Why prebuilt binaries (not a from-source brew formula)
bitfun-clipulls in the fullbitfun-coreworkspace via theproduct-fullfeature. A from-sourcebrew installwould take 5–10 minutes per user and require a Rust toolchain — unfriendly for terminal users. Shipping prebuilt tarballs keepsbrew install bitfun-clinear-instant.Smoke-test plan after merge
tag_name=v0.2.7andupload_to_release=falseto validate the four-target matrix without touching the release.HOMEBREW_TAP_DISPATCH_TOKENin repo secrets and push the preparedGCWing/homebrew-taprepo.Related (separate repo, not in this PR)
GCWing/homebrew-tapformula + bump workflow are prepared and pending push to the new tap repo.homebrew-coresubmission deferred per the issue plan, gated on 1.0.0 + adoption.