diff --git a/.github/workflows/run-benchmarks.yml b/.github/workflows/run-benchmarks.yml new file mode 100644 index 0000000..b6cd1b7 --- /dev/null +++ b/.github/workflows/run-benchmarks.yml @@ -0,0 +1,29 @@ +name: Run benchmarks + +on: + workflow_dispatch: + push: + branches: + - main + +jobs: + run-benchmarks: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + + - name: Run benchmarks + run: cargo bench + + - name: Upload benchmark reports + uses: actions/upload-artifact@v3 + with: + name: benchmark-reports + path: ./target/criterion/