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: Add back clippy & fmt checks #661

Merged
merged 1 commit into from
Oct 4, 2023
Merged

CI: Add back clippy & fmt checks #661

merged 1 commit into from
Oct 4, 2023

Conversation

georgwiese
Copy link
Collaborator

@georgwiese georgwiese commented Oct 4, 2023

Clippy and fmt checks got (I think accidentally) removed in #624. This PR adds them back.

@georgwiese georgwiese force-pushed the fix-clippy branch 2 times, most recently from 6d485ae to 0c3df98 Compare October 4, 2023 10:34
@georgwiese georgwiese changed the title Fix clippy CI: Add back clippy & fmt checks Oct 4, 2023
@georgwiese georgwiese marked this pull request as ready for review October 4, 2023 13:38
- name: Install nightly
run: rustup toolchain install nightly-2023-01-03-x86_64-unknown-linux-gnu
- name: Install riscv target
run: rustup target add riscv32imac-unknown-none-elf --toolchain nightly-2023-01-03-x86_64-unknown-linux-gnu
- name: Install stdlib
run: rustup component add rust-src --toolchain nightly-2023-01-03-x86_64-unknown-linux-gnu
- name: Lint
run: cargo clippy --all --all-features -- -D warnings
Copy link
Member

Choose a reason for hiding this comment

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

Is it more performant to group the calls with --all-features and --no-default-features, so that it does not have to go back-and-forth?

@chriseth
Copy link
Member

chriseth commented Oct 4, 2023

Looks good! Why did you move clippy?

chriseth
chriseth previously approved these changes Oct 4, 2023
@leonardoalt leonardoalt added this pull request to the merge queue Oct 4, 2023
@georgwiese georgwiese removed this pull request from the merge queue due to a manual request Oct 4, 2023
@georgwiese georgwiese force-pushed the fix-clippy branch 2 times, most recently from 72a217d to 7c25760 Compare October 4, 2023 15:07
@chriseth chriseth enabled auto-merge October 4, 2023 15:14
@georgwiese
Copy link
Collaborator Author

Looks good! Why did you move clippy?

I think my hope was to reuse some work, but I think it doesn't make much of a difference. But now the --all-features calls are grouped, as you suggested...

@chriseth chriseth added this pull request to the merge queue Oct 4, 2023
@georgwiese georgwiese merged commit a7fe0a4 into main Oct 4, 2023
@georgwiese georgwiese deleted the fix-clippy branch October 4, 2023 16:32
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