Skip to content
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

Support upx for Better Binary Size Minify #40

Open
SamuNatsu opened this issue Feb 19, 2025 · 2 comments
Open

Support upx for Better Binary Size Minify #40

SamuNatsu opened this issue Feb 19, 2025 · 2 comments

Comments

@SamuNatsu
Copy link

Just like it: https://github.com/johnthagen/min-sized-rust?tab=readme-ov-file#compress-the-binary

UPX repository is here: https://github.com/upx/upx

@autarch
Copy link
Member

autarch commented Feb 19, 2025

From some quick testing with my own omegasort project, this produces an impressive c. 75% reduction in binary size. I'm definitely open to adding this as an option to this action.

@autarch
Copy link
Member

autarch commented Feb 22, 2025

I've been thinking about this a bit, and I realized that this really doesn't belong in this action. This seems like something that should happen at the release step. It's already a bit odd that this action has a strip input (which I plan to get rid of in favor of letting cargo do this - #41).

I have another action, actions-rust-release, where this would make more sense. But I'm also wondering what the future of that action should be - houseabsolute/actions-rust-release#10

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

No branches or pull requests

2 participants