Skip to content

Include static builds in releases#828

Open
AnatoleLucet wants to merge 4 commits intoanomalyco:mainfrom
AnatoleLucet:feat/native-static-builds
Open

Include static builds in releases#828
AnatoleLucet wants to merge 4 commits intoanomalyco:mainfrom
AnatoleLucet:feat/native-static-builds

Conversation

@AnatoleLucet
Copy link
Copy Markdown
Contributor

@AnatoleLucet AnatoleLucet commented Mar 18, 2026

hi 👋

i updated the build scripts and release workflow to include static linked builds of the native renderer in the releases.
there's a release example on my fork: https://github.com/AnatoleLucet/opentui/releases/tag/v0.0.0-test

i did not change the name of the current dynamic archives (to avoid breaking anything if someone has automations around opentui releases), but if you'd prefer to have opentui-native-{version}-{plateform}-{arch}-{dynamic/static}.zip let me know

@kommander
Copy link
Copy Markdown
Collaborator

The npm packages would only ever use the dynamic lib, so including static libs in the npm packages would bloat them for installs imo. I think static libs should only be github release artifacts available for download there.

@AnatoleLucet AnatoleLucet force-pushed the feat/native-static-builds branch from 7e79743 to a661725 Compare March 18, 2026 12:40
@AnatoleLucet
Copy link
Copy Markdown
Contributor Author

true
i reverted the changes in the build script

@simonklee
Copy link
Copy Markdown
Member

Maybe i'm blind, but i don't see where we publish the gh static lib artifacts.

@AnatoleLucet
Copy link
Copy Markdown
Contributor Author

AnatoleLucet commented Mar 20, 2026

Maybe i'm blind, but i don't see where we publish the gh static lib artifacts.

is in this for loop. the -static suffix is caugh by the platform variable (might need to rename or split into another var). then everything in release-assets/ is added to the release :)

@kommander
Copy link
Copy Markdown
Collaborator

It's the loop above https://github.com/AnatoleLucet/opentui/blob/2864ba66f128e6ebc4e2e20c93969a2f9b4d6aaf/.github/workflows/release.yml#L165-L196 but yes, it's there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants