Skip to content

Commit

Permalink
run groth16, marlin, online
Browse files Browse the repository at this point in the history
  • Loading branch information
taskooh committed Jul 4, 2024
1 parent 9a027f1 commit f715cf0
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/run_binary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Rust CI

on:
push:
branches:
- main
pull_request:
branches:
- main
81 changes: 81 additions & 0 deletions .github/workflows/rust_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,84 @@ jobs:
echo "::error::cargo fix would make changes. Please run 'cargo fix' locally and commit the changes."
exit 1
fi
run_groth16_binary:
name: Run Groth16 Binary
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rustflags: ""

- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Run groth16 binary
run: ./run_groth16.zsh

run_marlin_binary:
name: Run Marlin Binary
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rustflags: ""

- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Run marlin binary
run: ./run_marlin.zsh

run-online-binary:
name: Run Online Binary
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rustflags: ""

- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Copy input file
run: cp ./inputs/input-template.json ./inputs/input.json

- name: Run online binary
run: ./run_online.zsh

0 comments on commit f715cf0

Please sign in to comment.