From e2c8c8d670ecf14fb9bdde35caba3a73f633cf5c Mon Sep 17 00:00:00 2001 From: Hein Dauven Date: Thu, 15 Aug 2024 23:31:45 +0200 Subject: [PATCH] ci: Add benchmark job to Rusk CI --- .github/workflows/rusk_ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/rusk_ci.yml b/.github/workflows/rusk_ci.yml index e8b20b8330..24a5f62d4e 100644 --- a/.github/workflows/rusk_ci.yml +++ b/.github/workflows/rusk_ci.yml @@ -75,3 +75,18 @@ jobs: - uses: actions/checkout@v4 - uses: dsherret/rust-toolchain-file@v1 - run: cargo fmt --all -- --check + benchmark: + needs: changes + if: needs.changes.outputs.run-ci == 'true' + name: Run Benchmarks + runs-on: core + steps: + - uses: actions/checkout@v4 + - uses: dsherret/rust-toolchain-file@v1 + - run: make bench + - name: Upload Benchmark Results + uses: actions/upload-artifact@v4 + with: + name: rusk-benchmark-results + path: ./rusk/target/criterion + retention-days: 3