1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh set -e if [ -z "$(command -v zig)" ]; then echo "Install zig v0.15.2" exit 1 fi if [[ "$(zig version)" != "0.15.2" ]]; then echo "Zig version is not 0.15.2. Let's hope this compiles." fi zig build -Doptimize=ReleaseFast echo "Success"