From f715cf028999f9020bb1294be3e43d8ed5a1ab48 Mon Sep 17 00:00:00 2001 From: taskooh Date: Thu, 4 Jul 2024 22:02:24 +0900 Subject: [PATCH] run groth16, marlin, online --- .github/workflows/run_binary.yml | 9 ++++ .github/workflows/rust_ci.yml | 81 ++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 .github/workflows/run_binary.yml diff --git a/.github/workflows/run_binary.yml b/.github/workflows/run_binary.yml new file mode 100644 index 00000000..2032d995 --- /dev/null +++ b/.github/workflows/run_binary.yml @@ -0,0 +1,9 @@ +name: Rust CI + +on: + push: + branches: + - main + pull_request: + branches: + - main diff --git a/.github/workflows/rust_ci.yml b/.github/workflows/rust_ci.yml index 0db11ffa..6c3bbc39 100644 --- a/.github/workflows/rust_ci.yml +++ b/.github/workflows/rust_ci.yml @@ -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