From 92db614fe3780fccd6895a855e81038bda2346a1 Mon Sep 17 00:00:00 2001 From: Roaa Sakr Date: Wed, 7 Jan 2026 10:03:22 -0800 Subject: [PATCH 1/2] add ci/cd workflow Signed-off-by: Roaa Sakr --- .github/workflows/ci.yml | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8cb21a9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,46 @@ +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 + + - 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 + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Run example + run: cargo run --package confuzzled_lib --example basic + + From 468602a4e91c2eee3e7438fc65efcd87a661dd17 Mon Sep 17 00:00:00 2001 From: Roaa Sakr Date: Wed, 7 Jan 2026 10:05:52 -0800 Subject: [PATCH 2/2] remove empty spaces Signed-off-by: Roaa Sakr --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8cb21a9..0cf2636 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,5 +42,3 @@ jobs: - name: Run example run: cargo run --package confuzzled_lib --example basic - -