-
Notifications
You must be signed in to change notification settings - Fork 52
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
Replace discontinued actions-rs
from CI
#311
Conversation
I hadn't noticed the action's deprecation, thanks a lot for giving us a hand in keeping things up-to-date. As for the other points; merging the formatting and linting stages seems reasonable to me, since they both achieve somewhat the same thing (preserving a healthy codebase and consistent style) and they both fail on error, so we might as well group them together. I wasn't aware of clippy's fail-on-warnings feature, or the fact that the doctor stage never runs on any platform. I'm sure there's a reason why it's disabled although that doesn't justify keeping an unused variable around. We should remove that condition and see how the command behaves on different platforms. If you're interested in implementing all the points you mentioned in a different pull request, I'd be more than happy to merge them in. Thanks again! |
I wasn't necessarily suggesting that we merge the two stages, but that we extract them into one (or two) different jobs.
It seems that the
Sure, what do you think, should we merge this PR and I open another one for those changes, or should I append them to this PR?
Happy to help 🙂 |
1f98978
to
bdd2a2f
Compare
Addendum: I updated the "Install cross" step to install the latest version from their GitHub repository. This fixes the NetBSD build (see cross-rs/cross#1348) until a new version is released. |
How would that help? Could you show an example?
What a horrible, horrible commit message. I literally failed to explain the "why" factor that prompted that change. I can't recall what went on in my head at that time. So... we should bring that
First proposal, definitely :) |
bdd2a2f
to
845e1aa
Compare
Sure, but I would suggest that we do this in the upcoming PR that does the change and you can give your feedback there. What do you think?
Will gladly do this as well in the follow-up PR. |
Totally, even better.
Thanks! |
More oddities have come our way. Running
And platforms for which cross-compilation is enabled fail with this error:
We should probaly replace the variable |
845e1aa
to
5d9510a
Compare
Yes this seems to be the behavior in the CI as well. However, I don't quite understand why this is now an issue, because looking at previous runs using
Thank you for the suggestion, I changed it accordingly. |
I wouldn't know how to check previous runs, but if that's the case then it's pretty weird that it would break all of a sudden. |
Due to
actions-rs
being currently unmaintained, this PR replaces it with dtolnay/rust-toolchain and explicit calls to the respectivecargo
/cross
commands.Things to consider
clippy
command currently does not fail when warnings are emitted. This could be fixed by settingRUSTFLAGS: "-Dwarnings"
(see https://doc.rust-lang.org/nightly/clippy/continuous_integration/github_actions.html)test
variable is never set for any platform.