XAMPPRocky / tokei

Count your code, quickly.
Other
10.88k stars 527 forks source link

Build Debian packages on release #823

Open ethanhs opened 3 years ago

ethanhs commented 3 years ago

Hi, I recently set up an apt repository at https://apt.cli.rs with the goal to host a central repository for cool Rust cli tools. I'd love to add tokei to the repo. To make that happen I believe the only things that would be required would be

  1. Add a configuration to Cargo.toml so https://crates.io/crates/cargo-deb can be used to build debs from the crate.
  2. Have the normal release process run cargo deb --no-build --target ... to generate the deb from the already built binaries
  3. Have the workflow upload the .deb files for the release

I'm happy to help with this if you want.

I also should note that for the greatest portability, statically linking to musl for the Debian packages would be ideal, I think we can just do the above steps only for musl targets.

Thanks for the handy tool :)

XAMPPRocky commented 3 years ago

Thank you for your issue! Overall I'm in favour of the change. Would you be up for making the needed CI in https://github.com/XAMPPRocky/mean-bean-ci-template ? Tokei's CI is based off that, and then other projects could easily generate Debian packages as well.

ethanhs commented 3 years ago

Sure, I made https://github.com/XAMPPRocky/mean-bean-ci-template/pull/6