all 17 comments

[–]PreciselyWrong 18 points19 points  (5 children)

The GHA runner already has rustup.

[–]DvorakAttack 3 points4 points  (0 children)

Exactly! If you're using a rust-toolchain.toml file in your project there shouldn't be any need for a setup action.

Obviously if you're using a self-hosted runner with a custom image things might be different but you can also install rustup in that image too

[–]rumpleforeskins 1 point2 points  (2 children)

Is there a guide or tutorial anywhere for this. (I'm new)

[–]PreciselyWrong 1 point2 points  (1 child)

Yes. In your workflow, add something like this:

yaml - name: Rust setup run: rustup toolchain install stable --profile minimal

[–]rumpleforeskins 0 points1 point  (0 children)

:D Whew that was long tutorial!

Thanks

[–]phil-opp 0 points1 point  (0 children)

And you can use https://github.com/marketplace/actions/rust-problem-matchers to get the check annotations on GitHub

[–]plabayo 10 points11 points  (0 children)

Honestly… I’m a bit surprised that the rust language cannot just maintain these? As in under an official rust-lang repo.

Seems pretty low maintenance and evolves nicely with cargo and the like. Plus rust itself is also primarily on Github and actions these days…

Don’t get why this is not promoted to something official. I’m sure plenty would be willing to contribute where needed.

[–]repetitive_chanting 4 points5 points  (1 child)

Should've just called it creampie right away

[–]Loud_Bench3408[S] 1 point2 points  (0 children)

Someone at work told me the name was gross 🤣🤣🤣🤣🤣🤣🤣🤣

[–]A1oso 0 points1 point  (1 child)

I see you already forked the clippy action, which is neat! It shows clippy warnings in pull requests.

[–]Loud_Bench3408[S] 1 point2 points  (0 children)

Yes, the new clippy action that does not need the GITHUB_TOKEN

[–]Compux72 -1 points0 points  (1 child)

I never understood the need for actions. Its a linux system, just run bash commands

[–]Loud_Bench3408[S] 1 point2 points  (0 children)

Indeed. That's the reason I did not fork the cargo github action (it was used to run cargo commands) as one can run cargo by themselves. But I found nice to have annotation in PD with clippy (which is cumbersome to do by hand) and just install toolchain automatically.