Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
16433f8
Consolidate OpenAI server: keep JDK/streaming OpenAiCompatServer, dro…
claude Jun 19, 2026
f0279d5
feat(server): add /infill + tool/usage correctness for IDE agent back…
claude Jun 19, 2026
a914854
feat(server): rerank + structured outputs + vision flag (M batch) and…
claude Jun 19, 2026
a235273
feat(server): Ollama-native API surface (/api/version,tags,show,chat)
claude Jun 19, 2026
eda6492
feat(server): Anthropic /v1/messages + OpenAI /v1/responses protocol …
claude Jun 19, 2026
b2c51c8
feat(server): add GET /props + Ollama POST /api/generate
claude Jun 19, 2026
0b90689
docs(TODO): sync OpenAI-server status — full route list + remaining gaps
claude Jun 19, 2026
b90ab32
test(server): gated integration round-trips for the alternative proto…
claude Jun 19, 2026
e65e221
test(server): extend protocol-translator coverage; fix Anthropic tool…
claude Jun 19, 2026
9e558fc
test(server): gated integration round-trips for embeddings, rerank, c…
claude Jun 19, 2026
0a7717d
fix(server): clear spotbugs fb-contrib/findsecbugs findings on the co…
claude Jun 19, 2026
1871c84
test(server): use MEAN pooling for the OAI embeddings integration test
claude Jun 19, 2026
a984fb1
fix(server): close streaming responses in a Sonar-recognized way; dro…
claude Jun 19, 2026
43bb3ff
fix(server): synchronize streamed writes on an owned final lock (Sona…
claude Jun 19, 2026
88f89a5
build(server): compile upstream server-http.cpp + cpp-httplib into li…
claude Jun 19, 2026
9aac410
build(webui): build llama.cpp WebUI once in CI, share to all native b…
claude Jun 19, 2026
cf65c3d
fix(server): clear SonarCloud gate — close resources + harden CI curl…
claude Jun 19, 2026
fae2b90
feat(server): propagate parallel_tool_calls across all OpenAI-compati…
claude Jun 20, 2026
a94cf0a
build(ci): cap macOS build parallelism + wire shared sccache/Depot co…
claude Jun 20, 2026
33d330f
docs: credit Depot build cache (README badge) + document the cache in…
claude Jun 20, 2026
3beefc6
build(ci): phase 2 — sccache/Depot cache for the dockcross + Linux-ho…
claude Jun 20, 2026
5017ace
fix(ci): enforce HTTPS on the sccache download curl (SonarCloud Secur…
claude Jun 20, 2026
96cfdd7
fix(ci): disable sccache on the dockcross/Linux-host builds (sccache …
claude Jun 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 50 additions & 2 deletions .github/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,53 @@
# SPDX-License-Identifier: MIT

mkdir -p build
cmake -Bbuild $@ || exit 1
cmake --build build --config Release -j$(nproc) || exit 1

# Build parallelism. Defaults to all cores; RAM-limited CI runners (notably GitHub's
# ~7 GB macOS arm64) export BUILD_JOBS lower (e.g. 2) so the large httplib.cpp + the 134
# llama.cpp model TUs do not exhaust memory and get the runner OOM-killed mid-compile
# (which surfaces as a SIGTERM / "runner received a shutdown signal", not a clean timeout).
JOBS="${BUILD_JOBS:-}"
if [ -z "$JOBS" ]; then
JOBS="$( { command -v nproc >/dev/null 2>&1 && nproc; } || sysctl -n hw.ncpu 2>/dev/null || echo 4 )"
fi

# Fetch sccache when caching is requested but the runner/container doesn't ship it — the
# dockcross cross-compile containers (manylinux/Android) and Linux hosts have no sccache,
# while macOS installs it via brew in the workflow. Best-effort and inert-safe: any failure
# leaves sccache absent, so the build just proceeds uncached. The static musl binary runs in
# any x86_64 Linux container (the cross-compile host is always x86_64).
if [ "${USE_CACHE:-true}" = "true" ] && [ -n "${SCCACHE_WEBDAV_TOKEN:-}${SCCACHE_GHA_ENABLED:-}" ] \
&& ! command -v sccache >/dev/null 2>&1 \
&& [ "$(uname -s)" = "Linux" ] && [ "$(uname -m)" = "x86_64" ]; then
SCCACHE_REL="sccache-v0.8.2-x86_64-unknown-linux-musl"
echo "build.sh: fetching ${SCCACHE_REL} (no sccache on PATH)..."
if curl -fsSL --proto =https --proto-redir =https \
"https://github.com/mozilla/sccache/releases/download/v0.8.2/${SCCACHE_REL}.tar.gz" \
-o /tmp/sccache.tgz && tar -xzf /tmp/sccache.tgz -C /tmp; then
export PATH="/tmp/${SCCACHE_REL}:$PATH"
echo "build.sh: sccache -> $(command -v sccache || echo 'still missing')"
else
echo "build.sh: sccache fetch failed; continuing without cache"
fi
fi

# Optional shared compiler cache: sccache fronting Depot Cache (WebDAV). Enabled only when
# USE_CACHE is true AND sccache + a cache token are present, so it stays inert before the
# DEPOT_TOKEN secret is configured and on fork PRs (secrets hidden) — those just compile
# normally. sccache is content-addressed, so a cache hit is bit-identical to a fresh -O3
# compile (release-safe), and it degrades to direct compilation if the cache is unreachable.
LAUNCH=""
if [ "${USE_CACHE:-true}" = "true" ] && command -v sccache >/dev/null 2>&1 \
&& [ -n "${SCCACHE_WEBDAV_TOKEN:-}${SCCACHE_GHA_ENABLED:-}" ]; then
LAUNCH="-DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache"
echo "build.sh: sccache ON (endpoint=${SCCACHE_WEBDAV_ENDPOINT:-default}), building with -j${JOBS}"
else
echo "build.sh: sccache OFF, building with -j${JOBS}"
fi

cmake -Bbuild $LAUNCH $@ || exit 1
cmake --build build --config Release -j"${JOBS}" || exit 1

if command -v sccache >/dev/null 2>&1; then
sccache --show-stats || true
fi
Loading
Loading