tokei icon indicating copy to clipboard operation
tokei copied to clipboard

Build Debian packages on release

Open emmatyping opened this issue 4 years ago • 2 comments

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 :)

emmatyping avatar Sep 05 '21 19:09 emmatyping

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.

XAMPPRocky avatar Sep 06 '21 08:09 XAMPPRocky

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

emmatyping avatar Sep 06 '21 20:09 emmatyping