#!/bin/bash # Pre-release hook set -x # Make a directory for pre-release artifacts mkdir -p artifacts # Build release binaries cargo build --release # Run all examples for example in $(ls examples); do echo "Running example: $example" ./target/release/examples/${example%.rs} done # Run all crater CLI examples for example in $(ls crater_examples); do echo "Running crater marching-cubes example: $example" ./target/release/crater marching-cubes -i crater_examples/$example -o artifacts/${example%.yaml}.stl done # Run git cliff echo "Running git cliff" git cliff -o CHANGELOG.md -c cliff.toml --tag {{version}} echo "Pre-release script finished. cargo-release taking over"