koboldcpp/.github/workflows
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
..
ai-issues.yml ai : update gh permissions (#20895) 2026-03-23 13:21:41 +02:00
bench.yml.disabled llama : move end-user examples to tools directory (#13249) 2025-05-02 20:27:13 +02:00
build-3rd-party.yml common : fix env names to all have LLAMA_ARG_ prefix (#23778) 2026-05-27 14:52:47 +03:00
build-and-test-snapdragon.yml snapdragon: bump toolchain docker to v0.7 to fix ui build issues (#23680) 2026-05-25 10:57:43 -07:00
build-android.yml ci : refactor (#23789) 2026-05-28 09:44:25 +03:00
build-apple.yml ci : apply ccache-clear with older/min/dry-run to all ccache jobs (#27602) 2026-08-24 10:49:20 +03:00
build-cache.yml ci : Update OpenVINO to 2026.3, skip nemotron-h rollback test (#27292) 2026-08-18 12:02:22 +02:00
build-cann.yml common : fix env names to all have LLAMA_ARG_ prefix (#23778) 2026-05-27 14:52:47 +03:00
build-cmake-pkg.yml ci: use shell script to check cmake pkg (#27414) 2026-08-20 20:01:32 +00:00
build-cpu.yml ci : apply ccache-clear with older/min/dry-run to all ccache jobs (#27602) 2026-08-24 10:49:20 +03:00
build-cross.yml ci : reduce (disable SYCL and CANN builds/releases) (#23705) 2026-05-26 15:21:21 +03:00
build-cuda-ubuntu.yml ci : apply ccache-clear with older/min/dry-run to all ccache jobs (#27602) 2026-08-24 10:49:20 +03:00
build-cuda-windows.yml ci: add Windows ARM64 CUDA support to the manual workflow (#27300) 2026-08-18 11:55:45 +02:00
build-ibm.yml common : fix env names to all have LLAMA_ARG_ prefix (#23778) 2026-05-27 14:52:47 +03:00
build-msys.yml ci : build-msys job slimming [no ci] (#24157) 2026-06-05 07:57:36 +02:00
build-opencl.yml ci : apply ccache-clear with older/min/dry-run to all ccache jobs (#27602) 2026-08-24 10:49:20 +03:00
build-openvino.yml ci : apply ccache-clear with older/min/dry-run to all ccache jobs (#27602) 2026-08-24 10:49:20 +03:00
build-riscv.yml ci : refactor (#23789) 2026-05-28 09:44:25 +03:00
build-sanitize.yml ci: fix thread sanitizer + remove ccache (#26927) 2026-08-12 19:01:12 +03:00
build-self-hosted.yml ci : Update OpenVINO to 2026.3, skip nemotron-h rollback test (#27292) 2026-08-18 12:02:22 +02:00
build-sycl.yml ci : apply ccache-clear with older/min/dry-run to all ccache jobs (#27602) 2026-08-24 10:49:20 +03:00
build-virtgpu.yml ggml-virtgpu: Add a GHA build check (#22943) 2026-05-11 21:38:22 +08:00
build-vulkan.yml ci : apply ccache-clear with older/min/dry-run to all ccache jobs (#27602) 2026-08-24 10:49:20 +03:00
build-wasm.yml ci : apply ccache-clear with older/min/dry-run to all ccache jobs (#27602) 2026-08-24 10:49:20 +03:00
build-webgpu.yml ci : apply ccache-clear with older/min/dry-run to all ccache jobs (#27602) 2026-08-24 10:49:20 +03:00
check-vendor.yml ci : move most slim jobs to self-hosted runners (#23619) 2026-05-25 08:11:19 +03:00
close-issue.yml ci: Also exempt 'security' tag from auto-close (#21844) 2026-04-14 01:18:44 +08:00
code-style.yml ci : move most slim jobs to self-hosted runners (#23619) 2026-05-25 08:11:19 +03:00
copilot-setup-steps.yml ci : limit requirements versions (#20980) 2026-03-25 10:55:37 +02:00
docker.yml ci : add attestation for signed release artifacts (#25933) 2026-08-19 10:23:52 +03:00
editorconfig.yml ci : move most slim jobs to self-hosted runners (#23619) 2026-05-25 08:11:19 +03:00
gguf-publish.yml gguf-py : bump version to 0.19.0 (#22664) 2026-05-06 14:46:14 +02:00
hip-quality-check.yml ci : apply ccache-clear with older/min/dry-run to all ccache jobs (#27602) 2026-08-24 10:49:20 +03:00
labeler.yml ci : use new 1vCPU runner for lightweight jobs (#19107) 2026-01-26 15:22:49 +01:00
make-release.yml ci : fix empty release_id in make-release upload step (#27516) 2026-08-21 21:41:25 +03:00
pr-draft-label.yml ci: add pr-draft-label (#26801) 2026-08-09 16:51:21 +02:00
pre-tokenizer-hashes.yml ci : fix pre-tokenizer-hashes check (#23651) 2026-05-25 10:41:25 +02:00
python-check-requirements.yml ci : move most slim jobs to self-hosted runners (#23619) 2026-05-25 08:11:19 +03:00
python-lint.yml ci : move most slim jobs to self-hosted runners (#23619) 2026-05-25 08:11:19 +03:00
python-type-check.yml ci : move most slim jobs to self-hosted runners (#23619) 2026-05-25 08:11:19 +03:00
release.yml ci : Restore ROCm job for Ubuntu (#27399) 2026-08-22 13:28:30 +03:00
server-sanitize.yml tests : clean-up server test, use tests.sh in ci (#26886) 2026-08-11 09:07:13 +03:00
server-self-hosted.yml tests : clean-up server test, use tests.sh in ci (#26886) 2026-08-11 09:07:13 +03:00
server.yml ci : apply ccache-clear with older/min/dry-run to all ccache jobs (#27602) 2026-08-24 10:49:20 +03:00
ui-build-self-hosted.yml server: clean up static assets handling (#24550) 2026-06-13 11:51:20 +02:00
ui-build.yml server: clean up static assets handling (#24550) 2026-06-13 11:51:20 +02:00
ui-publish.yml server: remove loading.html (#25500) 2026-07-10 14:42:17 +02:00
ui-self-hosted.yml ui: PWA support (#23871) 2026-06-12 15:53:26 +02:00
ui.yml ui: PWA support (#23871) 2026-06-12 15:53:26 +02:00
update-ops-docs.yml ci : move most slim jobs to self-hosted runners (#23619) 2026-05-25 08:11:19 +03:00
winget.yml cmake : introduce semantic versioning (#26839) 2026-08-12 14:15:03 +02:00