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: speedup build with caching #43

Merged
merged 1 commit into from
Feb 18, 2021
Merged

ci: speedup build with caching #43

merged 1 commit into from
Feb 18, 2021

Conversation

Wenzel
Copy link
Owner

@Wenzel Wenzel commented Feb 18, 2021

@Wenzel Wenzel force-pushed the ci_speedup_with_cache branch from a9e9413 to c7a6355 Compare February 18, 2021 13:02
@Wenzel Wenzel merged commit ac2ee68 into master Feb 18, 2021
@Wenzel Wenzel deleted the ci_speedup_with_cache branch February 18, 2021 13:05
@@ -35,10 +35,20 @@ jobs:
toolchain: stable
components: clippy
- uses: actions/checkout@v1

- uses: actions/cache@v2
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why though? Do you really need faster builds? This carries its own set of issues. For example, clippy does not work correctly on cached builds.

Copy link
Owner Author

Choose a reason for hiding this comment

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

you always want faster build when the build time is around 1 min or more, which is the case for rust projects
I wasn't aware that clippy would break with caching.

the idea was to speedup things like debian packaging (2 min) and release (4min).
the release job doesn't have a cache yet.

Copy link
Collaborator

Choose a reason for hiding this comment

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

rust-lang/rust-clippy#1495

TLDR: Clippy can only analyze code that is compiled during execution of cargo clippy. Since files that are up to date won't be rebuilt clippy will not report errors for those.

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