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: Replace deprecated/unmaintained actions-rs with simple run: steps #211

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

MarijnS95
Copy link
Contributor

The actions-rs containers haven't been maintained and updated for years and don't need to: GitHub's actions environment already comes fully loaded with a complete stable Rust installation with the standard tools (clippy, rustfmt, rustdoc). Simple run: commands relate directly to what a developer can type in locally to "reproduce" the CI environment while they might be following up on CI failures, and no longer spam ancient Node 12 deprecation warnings. Whenever a different toolchain or additional targets are needed, https://github.com/dtolnay/rust-toolchain is used to install it instead.

The only downside is that actions-rs/clippy-check properly embeds build failures as code annotations in the diff; but as shown in e.g. https://github.com/Smithay/drm-rs/actions/runs/11632990715/job/32397210203 this doesn't even work for PRs from forks.

…eps`

The `actions-rs` containers haven't been maintained and updated for
years and don't need to: GitHub's actions environment already comes
fully loaded with a complete `stable` Rust installation with the
standard tools (clippy, rustfmt, rustdoc).  Simple `run:` commands
relate directly to what a developer can type in locally to "reproduce"
the CI environment while they might be following up on CI failures, and
no longer spam ancient Node 12 deprecation warnings.
Whenever a different toolchain or additional targets are needed,
https://github.com/dtolnay/rust-toolchain is used to install it instead.

The only downside is that `actions-rs/clippy-check` properly embeds
build failures as code annotations in the diff; but as shown in e.g.
https://github.com/Smithay/drm-rs/actions/runs/11632990715/job/32397210203
this doesn't even work for PRs from forks.
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.

1 participant