Skip to content

ci(build): replace full builds with cargo check#76

Closed
panos-xyz wants to merge 1 commit intomainfrom
ci/optimize-workflows
Closed

ci(build): replace full builds with cargo check#76
panos-xyz wants to merge 1 commit intomainfrom
ci/optimize-workflows

Conversation

@panos-xyz
Copy link
Copy Markdown
Contributor

Summary

  • Replace cargo build --all (debug) + cargo build --all --release with cargo check --all --all-targets
  • Remove unnecessary rustfmt, clippy components from the build job

Why

The Build job was doing two full compilations:

  1. Debug build: ~60-80s
  2. Release build: ~180-220s ← main bottleneck

cargo check only does type-checking without producing binaries. It:

  • Catches the same compilation errors and -D warnings violations
  • Is ~4x faster (no codegen, no linking)
  • Is sufficient for PR CI validation

Release builds belong in the release workflow only, not PR CI. If cargo check passes and tests pass, the code is correct.

Expected impact

Job Before After (estimated)
Build ~265s ~50-60s

Related

PR #71 (mold linker) will further speed up test/lint jobs once merged.

- Replace `cargo build --all` (debug) + `cargo build --all --release`
  with `cargo check --all --all-targets`
- cargo check only does type-checking without producing binaries,
  ~4x faster while still catching compilation errors and warnings
- Release builds should only happen in release workflow, not PR CI
- Remove unnecessary rustfmt/clippy components from build job
  (those are installed in the lint workflow)
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 31, 2026

Warning

Rate limit exceeded

@panos-xyz has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 7 minutes and 39 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 7 minutes and 39 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 67ea01ad-e516-4c7d-b162-e213006a6147

📥 Commits

Reviewing files that changed from the base of the PR and between 1f54cae and 1592a78.

📒 Files selected for processing (1)
  • .github/workflows/build.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/optimize-workflows

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@panos-xyz
Copy link
Copy Markdown
Contributor Author

Changes merged into PR #71

@panos-xyz panos-xyz closed this Mar 31, 2026
@panos-xyz panos-xyz deleted the ci/optimize-workflows branch March 31, 2026 16:42
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