mirror of
https://github.com/codex-storage/proof-aggregation.git
synced 2025-02-13 15:16:58 +00:00
make the workflow shell scripts exit if something fails, so that you can see the errors
This commit is contained in:
parent
609518daf1
commit
4bb1b74293
@ -4,7 +4,7 @@
|
||||
source ./params.sh
|
||||
|
||||
# Build
|
||||
cargo build --release
|
||||
cargo build --release || { echo "build_circuit.sh: cargo build failed"; exit 101; }
|
||||
|
||||
# Run the Rust executable
|
||||
cargo run --bin build_circ
|
||||
cargo run --bin build_circ || { echo "build_circuit.sh: cargo run failed"; exit 102; }
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
export MAX_DEPTH=32 # maximum depth of the slot tree
|
||||
export MAX_LOG2_N_SLOTS=8 # Depth of the dataset tree = ceiling_log2(max_slots)
|
||||
export BLOCK_TREE_DEPTH=5 # depth of the mini tree (block tree)
|
||||
export N_FIELD_ELEMS_PER_CELL=272 # number of field elements per cell
|
||||
export N_SAMPLES=5 # number of samples to prove
|
||||
export MAX_DEPTH=32 # maximum depth of the slot tree
|
||||
export MAX_LOG2_N_SLOTS=8 # Depth of the dataset tree = ceiling_log2(max_slots)
|
||||
export BLOCK_TREE_DEPTH=5 # depth of the mini tree (block tree)
|
||||
export N_FIELD_ELEMS_PER_CELL=272 # number of field elements per cell
|
||||
export N_SAMPLES=5 # number of samples to prove
|
@ -4,7 +4,7 @@
|
||||
source ./params.sh
|
||||
|
||||
# Build
|
||||
cargo build --release
|
||||
cargo build --release || { echo "gen_input.sh: cargo build failed"; exit 101; }
|
||||
|
||||
# Run the Rust executable
|
||||
cargo run --bin gen_input
|
||||
cargo run --bin gen_input || { echo "gen_input.sh: cargo run failed"; exit 102; }
|
||||
|
@ -4,7 +4,7 @@
|
||||
source ./circ_params.sh
|
||||
|
||||
# Build
|
||||
cargo build --release
|
||||
cargo build --release || { echo "prove.sh: cargo build failed"; exit 101; }
|
||||
|
||||
# Run the Rust executable
|
||||
cargo run --bin prove
|
||||
cargo run --bin prove || { echo "prove.sh: cargo run failed"; exit 102; }
|
||||
|
@ -4,7 +4,7 @@
|
||||
source ./circ_params.sh
|
||||
|
||||
# Build
|
||||
cargo build --release
|
||||
cargo build --release || { echo "prove_and_verify.sh: cargo build failed"; exit 101; }
|
||||
|
||||
# Run the Rust executable
|
||||
cargo run --bin prove_and_verify
|
||||
cargo run --bin prove_and_verify || { echo "prove_and_verify.sh: cargo run failed"; exit 102; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user