Skip to content

Add CI workflow for build, clippy, and format checks#1

Merged
aljoscha merged 1 commit into
mainfrom
claude/github-actions-cargo-checks-DoScz
Mar 8, 2026
Merged

Add CI workflow for build, clippy, and format checks#1
aljoscha merged 1 commit into
mainfrom
claude/github-actions-cargo-checks-DoScz

Conversation

@aljoscha
Copy link
Copy Markdown
Owner

@aljoscha aljoscha commented Mar 8, 2026

Summary

This PR adds a GitHub Actions CI workflow to automatically run build, linting, and formatting checks on the repository.

Key Changes

  • Added .github/workflows/ci.yml with a CI pipeline that:
    • Runs on pushes to main and pull requests against main
    • Builds the project with cargo build
    • Runs cargo clippy with warnings treated as errors (-D warnings)
    • Validates code formatting with cargo fmt --check
    • Uses Rust stable toolchain with caching for faster builds

Implementation Details

  • Uses dtolnay/rust-toolchain@stable for reliable Rust toolchain management
  • Includes Swatinem/rust-cache@v2 to cache dependencies and speed up CI runs
  • Sets CARGO_TERM_COLOR: always for better readability in CI logs
  • All checks must pass before code can be merged to main

https://claude.ai/code/session_01Ez11VDgfHxrU1R3V6enz8P

Also restore the missing config::size module (ByteSize type) that was
referenced by config::vm and cli::vm but not checked into git.

https://claude.ai/code/session_01Ez11VDgfHxrU1R3V6enz8P
@aljoscha aljoscha merged commit 98b77cc into main Mar 8, 2026
1 check passed
@aljoscha aljoscha deleted the claude/github-actions-cargo-checks-DoScz branch March 8, 2026 11:12
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