upload-rust-binary-action icon indicating copy to clipboard operation
upload-rust-binary-action copied to clipboard

Allow to compress binaries with UPX

Open mondeja opened this issue 1 year ago • 5 comments

Add upx option to compress binaries with UPX on Windows and Linux (see https://upx.github.io). Contributes to #6

mondeja avatar Nov 10 '24 19:11 mondeja

Thanks for the PR! Could you add a test for this option?

taiki-e avatar Nov 11 '24 14:11 taiki-e

Added to CI in https://github.com/taiki-e/upload-rust-binary-action/pull/90/commits/c7c5a13b0ba594f598549e34f5db70033d0db023

mondeja avatar Nov 11 '24 18:11 mondeja

cc @damooo (who requested UPX support in https://github.com/taiki-e/upload-rust-binary-action/issues/54)

taiki-e avatar Dec 17 '24 16:12 taiki-e

UPX appears to greatly reduce the program size. I'm really looking forward to using it!

ahaoboy avatar Jul 03 '25 11:07 ahaoboy

Hi @taiki-e I'd really appreciate it if this PR could be moved forward and merged. I'm currently working on some Rust programs that run on OpenWRT, where storage space is extremely limited—typically around 30MB of available space. UPX has been tested and can reduce binary sizes by 30% to 60%, which is a huge improvement in such constrained environments. If there's any issue with this PR or if you need help addressing them, I'm happy to assist!

ahaoboy avatar Nov 09 '25 12:11 ahaoboy