ouch-org / ouch

Painless compression and decompression in the terminal
https://crates.io/crates/ouch
Other
2.18k stars 75 forks source link

CI refactor: use install-action & cargo-hack #654

Open cyqsimon opened 5 months ago

cyqsimon commented 5 months ago

cargo-hack

I recently discovered cargo-hack which has the powerful (😉) feature of --feature-powerset, which allows easy testing of all possible combinations of features. This has two main benefits compared to what we are doing now:

  1. much faster than the "one runner per feature set" approach, because it saves a lot of duplicate steps
  2. more reliable than bespoke shell scripting

install-action

install-action, maintained by the same developer, is a convenient way to install tools like cross and cargo-hack.

Problems

Currently cargo-hack does not seem to support keeping the compiled artifacts for each run, which means we will be losing some functionality in our CI. This is why this PR is still a draft. I have submitted an issue to ask about this.

marcospb19 commented 5 months ago

Nice! You can ping me if there are any updates regarding https://github.com/taiki-e/cargo-hack/issues/243.