Is Running Clippy in CI as Good as Running a Build? #136
-
For some reason, maybe just because we have a lot of dependencies, our builds are taking a pretty long time. 13 minutes for the Linux build, thought we somehow got 13 seconds with the Mac build ). It's probably because we're running out of cache space and it just starts deleting some of our caches resulting in the cached builds running really fast and the un-cached builds taking the hit. Anyway, I just realized, though, why do we actually need to run a full build for CI? Can't we just There are some crates/tools that cause linker errors to prevent you from doing certain things, but those are usually hacky workarounds for something like a way to prevent you from inserting unsafe code into a function. If we're not using anything like that, I think a cargo check in CI should be just about as good as a cargo build. Then we only need to do actual cargo builds on releases. There might be a scenario I'm not thinking of. What do you think? @odecay @64kramsystem @orhun |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I'm not 100% sure why builds are so slow, as 10 GB should be enough, however, given that there are no test suites in the project, bulding only for tags makes sense. Also, now that the |
Beta Was this translation helpful? Give feedback.
-
I'm going to convert this to an issue, since regardless of the outcome, we'll need to do something (at the very least, remove the |
Beta Was this translation helpful? Give feedback.
I'm going to convert this to an issue, since regardless of the outcome, we'll need to do something (at the very least, remove the
Build caches
workflow.