Skip to content

CI: actions-rs/toolchain -> dtolnay/rust-toolchain #489

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

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

newAM
Copy link
Member

@newAM newAM commented Oct 29, 2023

actions-rs is deprecated as of 2023-10-13, and was not maintained long before that. This replaces all uses of actions-rs/toolchain with dtolnay/rust-toolchain.

We still have a use of actions-rs/clippy-check. For most repositories I simply run the CLI version, the UI isn't as nice, but it is easier to maintain. I can make this change too, if desired.

@newAM newAM requested a review from a team as a code owner October 29, 2023 22:10
@jonathanpallant
Copy link
Contributor

Is the use of an action strictly required? I believe the standard Ubuntu environment has rustup installed, so you can just rustup whatever version of Rust you want.

@newAM
Copy link
Member Author

newAM commented Oct 30, 2023

Is the use of an action strictly required? I believe the standard Ubuntu environment has rustup installed, so you can just rustup whatever version of Rust you want.

That's pretty much what this action is doing, it's ~50ish lines of bash that handles all the OS specific behavior and presents a clean interface: https://github.com/dtolnay/rust-toolchain/blob/439cf607258077187679211f12aa6f19af4a0af7/action.yml#L30

@jonathanpallant
Copy link
Contributor

I think I'd still vote for having fewer dependencies in our CI actions and keeping things simpler (my word, that bash for parsing rust versions is utterly incomprehensible) but I'm not going to prevent anyone else coming along and approving this.

@newAM
Copy link
Member Author

newAM commented Nov 24, 2023

I can see your point on using rustup. However I'm using these actions for many repositories, and for that reason I would prefer to use it here as well since it is less work to maintain for me.

Copy link
Member

@adamgreig adamgreig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From scratch I'd go with rustup too, but I'm most interested in getting us moved off actions-rs and don't have any issue with the dtolnay action. If it does cause any issues it won't be hard to swap off it.

@adamgreig adamgreig added this pull request to the merge queue Nov 29, 2023
Merged via the queue into rust-embedded:master with commit 0b04de5 Nov 29, 2023
@newAM newAM deleted the rm-actions-rs branch November 29, 2023 22:16
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.

3 participants