From c6da97c955a62fc0cc031bb6764a78177c7d2589 Mon Sep 17 00:00:00 2001 From: Duje Begonja Date: Tue, 23 Jan 2024 11:22:05 +0100 Subject: [PATCH] add oidc --- .github/workflows/bench.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 1a9b51e64e0..258ee864689 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -3,6 +3,7 @@ name: Benchmark PR on: pull_request: # Run on PR against any branch + pull_request_target: concurrency: group: benchmark-comparison-${{ github.ref }} @@ -10,6 +11,7 @@ concurrency: jobs: benchmark: + if: ${{ github.event_name == 'pull_request' }} name: Run bench runs-on: ubuntu-latest-16-cores steps: @@ -22,3 +24,21 @@ jobs: - uses: radixdlt/criterion-compare-action@update-same-commit with: branchName: ${{ github.base_ref }} + + benchmark_fork: + permissions: + pull-requests: write + if: ${{ github.event_name == 'pull_request_target' }} + environment: "benchmark-prs-forked" + name: Run bench forked + runs-on: ubuntu-latest-16-cores + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - name: Add wasm target + run: rustup target add wasm32-unknown-unknown + - uses: radixdlt/criterion-compare-action@update-same-commit + with: + branchName: ${{ github.base_ref }} \ No newline at end of file