#!/usr/bin/env bash # Configure, compile and install the node into bin/. # # dora 1.0 runs a node's `build:` command directly rather than through a shell, # so `cd`, `&&` and command substitution are not available there. The whole # sequence lives here instead, and the dataflow only invokes this script. set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" REPO_DIR="$(dirname "$SCRIPT_DIR")" BUILD_DIR="${REPO_DIR}/build" cmake -S "$REPO_DIR" -B "$BUILD_DIR" -DCMAKE_BUILD_TYPE=Release cmake --build "$BUILD_DIR" --target install --parallel "$(nproc)"