10 lines
230 B
Bash
Executable file
10 lines
230 B
Bash
Executable file
#!/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
|