Skip to content

Commit

Permalink
exit the CI if build fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
zutshi committed Jan 29, 2025
1 parent e2269c6 commit b236dfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/run_benchmarks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ for i in "${!test_directories[@]}"; do

# Build the benchmark
echo "Building $file"
cargo build --release -p "$file"
cargo build --release -p "$file" || exit 1 # Exit if build fails

echo "Running $file"
# Use `time` to measure execution time and memory.
Expand Down

0 comments on commit b236dfe

Please sign in to comment.