-
Notifications
You must be signed in to change notification settings - Fork 569
Feat(cli): Add Bun-based binary release workflow #713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…triggering on cli release tags, building & uploading releases
|
marked as "stale" for now because we should look for a binary compilation that packages the |
Keep in mind, node has this now too: |
It's under "Active Development", the api is not nearly as simple and afaik this only works with CommonJs modules and a single entry point file. |
This PR introduces a new workflow for building and releasing standalone CLI binaries using Bun.
Key changes:
bun build --compile
for creating binaries (faster builds, potentially smaller size).packages/cli/scripts/build-binaries.sh
to:cli_VERSION_os_arch
).cli_VERSION_checksums.txt
file.packages/cli/scripts/test-binary.sh
to:--version
..github/workflows/cli_release_binaries.yml
:@e2b/cli@<version>
are pushed.pnpm install --frozen-lockfile
.build-binaries.sh
script viapnpm run
.test-binary.sh
script viapnpm run
to test the binary built for the runner's native architecture.gh
CLI).package.json
scripts.build-binaries.sh
&test-binary.sh
.Build Script Output

CLI Release Content
