Merge branch 'v2' of https://github.com/summa-dev/summa-solvency into v2 #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Benchmark | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
run_benchmark: | ||
description: 'Run benchmark tests (yes/no)' | ||
required: true | ||
default: 'no' | ||
<<<<<<< HEAD | ||
env: | ||
CARGO_TERM_COLOR: always | ||
======= | ||
>>>>>>> fec83a747ead213261aecfaf4a01b43fff9731ee | ||
jobs: | ||
wakeup: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.run_benchmark == 'yes' }} | ||
permissions: | ||
id-token: write | ||
contents: read | ||
<<<<<<< HEAD | ||
======= | ||
>>>>>>> fec83a747ead213261aecfaf4a01b43fff9731ee | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: arn:aws:iam::490752553772:role/summa-solvency-ec2-slc | ||
role-duration-seconds: 900 | ||
aws-region: us-west-2 | ||
- name: Wakeup runner | ||
run: .github/scripts/wakeup.sh | ||
benchmark: | ||
runs-on: [summa-solvency-runner] | ||
needs: [wakeup] | ||
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.run_benchmark == 'yes' }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
<<<<<<< HEAD | ||
- name: Run Benchmark | ||
run: | | ||
cd zk_prover | ||
======= | ||
- name: Run Benchmark Tests | ||
run: | | ||
cd prover | ||
>>>>>>> fec83a747ead213261aecfaf4a01b43fff9731ee | ||
cargo bench | ||
- name: Upload Benchmark Results | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: benchmark-results | ||
<<<<<<< HEAD | ||
path: zk_prover/target/criterion | ||
======= | ||
path: prover/target/criterion | ||
>>>>>>> fec83a747ead213261aecfaf4a01b43fff9731ee |