Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cyqsimon
Copy link
Contributor

@cyqsimon cyqsimon commented Apr 1, 2024

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
Copy link
Member

Nice! You can ping me if there are any updates regarding taiki-e/cargo-hack#243.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants