Files
leleka/scripts/build-cpu.sh
T
Pavlo RatushnyiandClaude Sonnet 5.5 9b08355660 scripts: restore the executable bit lost in the 2026-10-14 import (every workflow job died at "Permission denied")
7f896a8bb changed 100755 to 100644 on 16 scripts that the workflows or check-local.sh execute by path, among them
scripts/install-pinned-rustup.sh (the first step of every job), scripts/test-cuda-fixed-ptx.sh, scripts/test-cuda-driver-bootstrap.sh,
scripts/build-cpu.sh and the GPU gate scripts. A Linux checkout keeps git's mode, so `scripts/install-pinned-rustup.sh ...` failed with
"Permission denied" before any build. Found by running the steps from a `git archive` in a Linux container; the Windows and WSL-on-/mnt/c
runs of the first audit show every file as executable and could not see it. Only modes change; engine/strata is not touched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 01:42:33 +01:00

30 lines
1.2 KiB
Bash
Executable File

#!/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
# The standalone CPU tests ctest registers under STRATA_BUILD_CONVERSATION_TESTS. Upstream 0.1.50 registers eleven more than
# the 0.1.35 pin did; a registered test whose binary is not built shows up as "Not Run" and fails ctest, so every one is listed.
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 \
conversation_split_failure_test conversation_file_test session_save_reclaim_test message_boundary_test \
split_ring_test draft_kv_plan_test spec_prob_test draft_cap_test batch_rows_test batch_groups_test \
nvfp4_avx512_parity
ctest --test-dir "${build_dir}" --output-on-failure