From 903d939d157ab84e2c4768849337b890a28290be Mon Sep 17 00:00:00 2001 From: alankritdabral <95607957+alankritdabral@users.noreply.github.com> Date: Mon, 8 Apr 2024 18:01:52 +0530 Subject: [PATCH] Update benchmark.yml --- .github/workflows/benchmark.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 2aba2d2397..c62fd24678 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -71,7 +71,6 @@ jobs: Cache_Benchmarks: name: Cache Micro Benchmarks result - if: (github.event_name == 'push' && github.ref == 'refs/heads/main') permissions: pull-requests: write contents: write @@ -80,15 +79,11 @@ jobs: - name: Check out code uses: actions/checkout@v4 - - name: Install Rust - uses: actions-rust-lang/setup-rust-toolchain@v1 - - name: Run Benchmarks run: | cargo install cargo-criterion rust-script - cargo criterion --message-format=json > benches/main_benchmarks.json - ./scripts/json_to_md.rs benches/main_benchmarks.json > benches/main_benchmarks.md - cat benches/main_benchmarks.md + echo "PR number = ${{ github.event.pull_request.number }}" + echo "PR number = ${{ github.ref }}" - name: Cache Criterion Benchmarks Json uses: actions/cache@v4