From 405a3879dd8397020ae338ce2c4d7229801581c9 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..d2335509f4 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: ./target/criterion + retention-days: 3