Files
leleka/scripts/build-cpu.sh
T
Pavlo RatushnyiandClaude Sonnet 5.5 7f896a8bb8 import: Original-literal source-port snapshot (frozen 2026-10-12 06:36, uncompiled together, no GPU run)
Snapshot of target/stra169-direct-port-integration/source-port (without target/), now the tracked base for the full Strata Rust port.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 14:38:46 +02:00

25 lines
744 B
Bash

#!/usr/bin/env bash
set -euo pipefail
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
build_dir="${STRATA_BUILD_DIR:-${repo_root}/artifacts/build-cpu}"
jobs="${BUILD_JOBS:-4}"
if ! command -v cmake >/dev/null 2>&1; then
printf 'CMake 3.24 or newer is required.\n' >&2
exit 1
fi
cmake -S "${repo_root}/engine/strata" -B "${build_dir}" \
-DSTRATA_ENABLE_CUDA=OFF \
-DSTRATA_ENABLE_HIP=OFF \
-DSTRATA_BUILD_TESTS=OFF \
-DSTRATA_BUILD_CONVERSATION_TESTS=ON
cmake --build "${build_dir}" --parallel "${jobs}" --target \
strata-gguf strata-dequant strata-plan \
conversation_cache_test conversation_memory_test \
conv_cache_test coupled_draft_test bf16_bits_test
ctest --test-dir "${build_dir}" --output-on-failure