mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-19 20:19:59 +00:00
Add script to run all example programs with debug mode
This commit is contained in:
parent
26213b28d6
commit
72d02e2336
16
.github/scripts/run_examples.sh
vendored
Normal file
16
.github/scripts/run_examples.sh
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
cargo build --release --examples
|
||||
|
||||
for ex in examples/*.rs; do
|
||||
name=$(basename "$ex" .rs)
|
||||
echo
|
||||
echo "🟡 Running example: $name"
|
||||
|
||||
if ! cargo run --release --example "$name" -- --debug; then
|
||||
echo
|
||||
echo "❌ Example '$name' failed. Aborting."
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
echo
|
||||
echo "✅ All examples ran successfully."
|
Loading…
x
Reference in New Issue
Block a user