koboldcpp/scripts
Georgi Gerganov 985b14912b
ci : apply ccache-clear with older/min/dry-run to all ccache jobs (#27602)
* ci : apply ccache-clear with older/min/dry-run to all ccache jobs

Assisted-by: llama.cpp:DeepSeek-v4-Flash-0731

* ci : install gh in ccache-clear if missing (container jobs)

The ccache-clear action relies on the gh CLI, which is not present in
container-based jobs. Install it on demand so those jobs can clear caches.

Assisted-by: llama.cpp:DeepSeek-v4-Flash-0731

* ci : install gh via apt repo in ccache-clear

The install.sh script used previously is no longer served (404). Switch to
the official GitHub CLI apt repository, which is still available.

Assisted-by: llama.cpp:DeepSeek-v4-Flash-0731

* ci : pass --repo to gh cache commands in ccache-clear

In container jobs gh cannot auto-detect the repository from git, so
gh cache list/delete fail with 'failed to run git: not a git repository'.
Pass the repository explicitly via --repo using GITHUB_REPOSITORY.

Assisted-by: llama.cpp:DeepSeek-v4-Flash-0731

* ci : drop -new suffix from vulkan ccache key

The -new suffix was only needed to force a fresh cache. With
ccache-clear now evicting stale caches, the original key can be used
again. The old ccache-vulkan-ubuntu-24.04-arm-new entries still match
the ccache-clear key prefix and are cleaned up automatically.

Assisted-by: llama.cpp:DeepSeek-v4-Flash-0731

* ci : fix ccache-clear date parsing on macOS (BSD date)

macOS ships BSD date, which has no -d option. The older cutoff check
was silently disabled there: 'date: illegal option -- d' errors in the
log and the loop was only stopped by the min limit, risking deletion
of caches not older than the cutoff (e.g. saved by a concurrent job).

Parse the ISO-8601 timestamps with GNU date when available and fall
back to BSD date otherwise (TZ=UTC, fractional seconds dropped).

Assisted-by: llama.cpp:DeepSeek-v4-Flash-0731

* ci : extract ccache-clear logic into scripts/ccache-clear.sh

The composite action now consists of a dedicated step that installs the
GitHub CLI when missing (e.g. in container jobs) and a thin step that
calls the new script. The script follows the make-release-checks.sh
conventions (usage/env header, set -euo pipefail, CLI flags) and only
checks that gh is available. The action inputs are unchanged, so the
workflow steps are untouched.

Assisted-by: llama.cpp:DeepSeek-v4-Flash-0731

* ci : remove unused apple ccaches
2026-08-24 10:49:20 +03:00
..
apple
hip ci: hip-quality-check: update vgpr spill ignore list (#26859) 2026-08-11 11:47:57 +02:00
jinja ci : bump ty to 0.0.33 (#22535) 2026-04-30 16:15:54 +03:00
snapdragon common: migrate the deprecated --mmap/--no-mmap to --load-mode (#26934) 2026-08-15 16:35:53 +08:00
bench-models.sh common: migrate the deprecated --mmap/--no-mmap to --load-mode (#26934) 2026-08-15 16:35:53 +08:00
build-info.sh
ccache-clear.sh ci : apply ccache-clear with older/min/dry-run to all ccache jobs (#27602) 2026-08-24 10:49:20 +03:00
check-requirements.sh
compare-commits.sh
compare-llama-bench.py args: refactor mlock/mmap/directio into load-mode (#20834) 2026-07-23 20:32:56 +08:00
compare-logprobs.py
create_ops_docs.py
debug-test.sh
gen-authors.sh
gen-unicode-data.py ci : bump ty to 0.0.26 (#21156) 2026-03-30 09:29:15 +02:00
get-flags.mk
get-hellaswag.sh scripts : update get-hellaswag.sh and get-winogrande.sh (#20542) 2026-03-14 11:21:50 +01:00
get-pg.sh
get-wikitext-2.sh
get-winogrande.sh scripts : update get-hellaswag.sh and get-winogrande.sh (#20542) 2026-03-14 11:21:50 +01:00
get_chat_template.py
git-bisect-run.sh
git-bisect.sh
hf.sh
install-oneapi.bat
make-release-checks.sh ci : restore release.yml check during make-release.yml (#27247) 2026-08-17 13:10:56 +03:00
make-release-desc.sh ci : add nightly-tag.txt to make-release (#27485) 2026-08-21 13:20:44 +03:00
pr2wt.sh pr2wt : symlink .pi (#22386) 2026-04-26 19:49:26 +03:00
release.sh scripts : add release.sh for release preparation (#27497) 2026-08-21 14:51:26 +03:00
serve-static.js
server-bench.py server-bench : add speed-bench for speculative decoding benchmarking (#23869) 2026-05-29 23:09:47 +02:00
server-test-function-call.py common/autoparser: fixes for newline handling / forced tool calls (#22654) 2026-05-04 13:18:11 +02:00
server-test-model.py
server-test-parallel-tc.py chat: fix parallel_tool_calls default setting based on model capabilities, add tests for parallel tool calls and structured outputs (#22217) 2026-04-22 18:10:56 +02:00
server-test-structured.py parser: fix structured output bug (#22302) 2026-04-24 23:19:55 +02:00
sync-ggml-am.sh
sync-ggml.last sync : ggml 2026-08-21 14:36:36 +03:00
sync-ggml.sh
sync_vendor.py vendor : update subprocess.h (#27409) 2026-08-23 10:38:29 +03:00
tool_bench.py
tool_bench.sh
ui-assets.cmake Prefer npm ci over install for security (#26601) 2026-08-05 00:14:22 +02:00
verify-checksum-models.py
wc2wt.sh scripts : allow wc2wt with an existing branch (#23189) 2026-05-18 08:57:28 +03:00