From 68112196db748941b38d78cfb9f094ee45911a17 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..af042722ec 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' && github.event_name == 'push' && github.ref == 'refs/heads/main' + 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: 14