Skip to content

ci: Add workflow for build and test#3

Merged
romoh merged 2 commits intomainfrom
user/romoh/cicd
Jan 7, 2026
Merged

ci: Add workflow for build and test#3
romoh merged 2 commits intomainfrom
user/romoh/cicd

Conversation

@romoh
Copy link
Owner

@romoh romoh commented Jan 7, 2026

Summary

Add ci/cd workflow to ensure build & test are run with each PR

Validation

Validated as part of sending that PR and making sure it is run as expected

romoh added 2 commits January 7, 2026 10:03
Signed-off-by: Roaa Sakr <romoh@microsoft.com>
Signed-off-by: Roaa Sakr <romoh@microsoft.com>
@romoh romoh requested a review from Copilot January 7, 2026 18:06
@romoh romoh merged commit 71f0cec into main Jan 7, 2026
8 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a GitHub Actions CI/CD workflow to automate build and test processes for the Rust project. The workflow runs on pushes and pull requests to the main branch.

Key changes:

  • Adds a build job that compiles the code, runs tests, performs linting with clippy, and checks code formatting
  • Adds an example job that validates the basic example runs successfully
  • Configures both jobs to run on ubuntu-latest with stable Rust toolchain

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Copy link

Copilot AI Jan 7, 2026

Choose a reason for hiding this comment

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

Consider adding Cargo dependency caching to speed up CI runs. Without caching, all dependencies will be recompiled on every workflow run, which can significantly increase build times. You can add a caching step after checkout using actions/cache or the Swatinem/rust-cache action which is specifically designed for Rust projects and handles caching of the target directory and Cargo registry automatically.

Copilot uses AI. Check for mistakes.
example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Copy link

Copilot AI Jan 7, 2026

Choose a reason for hiding this comment

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

Consider adding Cargo dependency caching to speed up CI runs. Without caching, dependencies will be recompiled on every workflow run, which can significantly increase build times. You can add a caching step after checkout using actions/cache or the Swatinem/rust-cache action which is specifically designed for Rust projects.

Copilot uses AI. Check for mistakes.
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