Skip to content

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

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

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.

@marcospb19 marcospb19 force-pushed the main branch 3 times, most recently from 2a81e96 to c6cbf6e Compare April 8, 2025 00:38
@marcospb19 marcospb19 force-pushed the main branch 10 times, most recently from 91103b1 to 2b9da1e Compare April 21, 2025 02:05
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