make the workflow shell scripts exit if something fails, so that you can see the errors

This commit is contained in:
Balazs Komuves 2024-12-05 19:45:23 +01:00
parent 609518daf1
commit 4bb1b74293
No known key found for this signature in database
GPG Key ID: F63B7AEF18435562
5 changed files with 13 additions and 13 deletions

View File

@ -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; }

View File

@ -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

View File

@ -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; }

View File

@ -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; }

View File

@ -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; }