Skip to content

Conversation

Drakulix
Copy link
Member

Continuation of #211

MarijnS95 and others added 4 commits July 25, 2025 16:48
…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.
@Drakulix Drakulix merged commit 0df1a75 into develop Jul 25, 2025
16 checks passed
@Drakulix Drakulix deleted the rm-actions-rs branch July 25, 2025 15:05
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all --all-features --all-targets -- -D warnings -A clippy::redundant_static_lifetimes
run: cargo +1.70.0 clippy --all --all-features --all-targets -- -D warnings -A clippy::redundant_static_lifetimes
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm only noticing now that we were only running clippy on our MSRV and not on stable. Is that intended?

Perhaps reduces contributor churn by not flagging small new contributions as failing CI (on irrelevant existing hunks in this codebase) if the repo hasn't been touched for a while and there's a new stable with stricter lints (similar to the stuff we had to do in #225 to get it back to a functioning state).

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