Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build & Test

on:
push:
branches: [main]
pull_request:
branches: [main]

env:
CARGO_TERM_COLOR: always

jobs:
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.

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt

- name: Build
run: cargo build --all-targets

- name: Run tests
run: cargo test --all-targets

- name: Run clippy
run: cargo clippy --all-targets -- -D warnings

- name: Check formatting
run: cargo fmt --all -- --check

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.

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Run example
run: cargo run --package confuzzled_lib --example basic