Skip to content

Commit

Permalink
Removed bench.yml, added trigger_proverbench_dispatch.yml to allign h…
Browse files Browse the repository at this point in the history
…alo2 benches with main
  • Loading branch information
testuser-at-490752553772 authored and kilic committed Jul 4, 2022
1 parent 43f1211 commit dd7c385
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 34 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/bench.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/trigger_proverbench_dispatch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Prover Bench on halo2 PR
on:
pull_request:
types: [labeled , ready_for_review]
jobs:
Prover-benches-via-repo-dispatch-from-halo2-fork:
if: ${{ github.event.label.name == 'benchmarks' }}
runs-on: ubuntu-latest
env:
GH_USER: ${{ github.actor }}
_TOKEN: ${{ secrets.BENCHMARKER }}
REVISION: ${{ github.event.pull_request.head.sha }}
REPO: ${{ github.event.repository.name }}
PR_NUMBER: ${{ github.event.number }}
steps:
- name: Install curl
run: |
sudo apt-get update
sudo apt-get install curl
- name: Send repo api call
run: |
curl \
-X POST \
-H "Accept: application/vnd.github.v3+json" \
-u ZKEVMBOT:${{ env._TOKEN }} \
https://api.github.com/repos/appliedzkp/zkevm-circuits/actions/workflows/ProverBenchFromHalo2.yml/dispatches \
-d "{\"ref\":\"main\",\"inputs\":{\"halo2pr\":\"${{ env.PR_NUMBER }}\",\"revision\":\"${{ env.REVISION }}\",\"event-type\":\"halo2_wfdispatch\",\"ghuser\": \"${{ env.GH_USER }}\"}}"

0 comments on commit dd7c385

Please sign in to comment.