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.13.0" exit 1 fi if [[ "$(zig version)" != "0.13.1" ]]; then echo "Zig version is not 0.13.0. Let's hope this compiles." fi zig build -Doptimize=ReleaseFast echo "Success"