ouch icon indicating copy to clipboard operation
ouch copied to clipboard

CI refactor: use install-action & cargo-hack

Open cyqsimon opened this issue 1 year ago • 1 comments

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.

cyqsimon avatar Apr 01 '24 07:04 cyqsimon

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

marcospb19 avatar Apr 01 '24 14:04 marcospb19