forked from privacy-scaling-explorations/zkevm-circuits
-
Notifications
You must be signed in to change notification settings - Fork 387
36 lines (34 loc) · 1.4 KB
/
gh-actions-prover-benches.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: GH Actions Prover Benches on PR
on:
pull_request:
types: [ labeled , ready_for_review]
jobs:
Prover_benchmarking_Automation:
if: contains(github.event.label.name, 'benchmarks')
runs-on: pse-runner
env:
PR_NUMBER: ${{ github.event.number }}
steps:
- name: Check out repository code
uses: actions/checkout@v4
- run: .github/proverCiScripts/wakeUpProver.sh
shell: bash
- run: |
ssh prover "bash -s" -- < .github/proverCiScripts/rsSysstat.sh "${{ env.PR_NUMBER }}"
- run: |
ssh prover "bash -s" -- < .github/proverCiScripts/prepareProver.sh "${{ env.PR_NUMBER }}" "${{ github.workspace }}"
- run: .github/proverCiScripts/deployToProver.sh "${{ env.PR_NUMBER }}" "${{ github.workspace }}"
shell: bash
- run: |
ssh prover "bash -s" -- < .github/proverCiScripts/execBench.sh "${{ env.PR_NUMBER }}" 19 '"${{ github.event.label.name }}"'
shell: bash
- run: |
ssh prover "bash -s" -- < .github/proverCiScripts/getSysstat.sh "${{ env.PR_NUMBER }}"
- name: Calculate Benchmark Result
if: success() || failure()
run: .github/proverCiScripts/processResults.sh "${{ env.PR_NUMBER }}" '"${{ github.event.label.name }}"' "19"
shell: bash
- name: PowerOff prover
if: always()
run: .github/proverCiScripts/shutdownProver.sh
shell: bash