#!/usr/bin/env bash
set -euo pipefail

ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT_DIR"

OUTPUT="${OUTPUT:-.build/nomadcode-core}"
mkdir -p "$(dirname "$OUTPUT")"

exec go build -o "$OUTPUT" ./cmd/server
