From 38025b46124b66ffed195322935b500476291d0f Mon Sep 17 00:00:00 2001 From: JayanAXHF Date: Sun, 8 Mar 2026 11:14:01 +0530 Subject: [PATCH] ops(CI): add benchmark CI job --- .github/workflows/build.yml | 21 +++++++++++++++++++++ .github/workflows/rust.yml | 8 +++----- 2 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..50cbedc --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +name: Build and Lints + +on: + push: + branches: ["main"] + pull_request: + branches: ["*"] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Clippy + run: cargo clippy -- -D clippy::all diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index cfe776f..2d306c5 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,4 +1,4 @@ -name: Rust +name: Tests and Benchmarks on: push: @@ -15,9 +15,7 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Build - run: cargo build --verbose - - name: Clippy - run: cargo clippy -- -D clippy::all - name: Run tests run: cargo test --verbose + - name: Run benchmarks + run: cargo bench -F benches