char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
985b14912
char/aliceai-t5-moe
1# note: place this as the last step of the job, so the new cache is saved by "Post ccache" right after the old one is cleared 2name : "ccache-clear" 3description : "Delete GitHub Actions caches matching a key prefix, oldest first" 4inputs : 5key : 6description : "Cache key prefix to match and delete" 7required : true 8older : 9description : "Only delete caches created more than this long ago (e.g. 90m, 1h, 1d). By default all matching caches are deleted" 10required : false 11default : "" 12min : 13description : "Stop deleting if fewer than this many caches would remain (e.g. 1). By default there is no minimum" 14required : false 15default : "0" 16dry-run : 17description : "Only print the caches that would be deleted, without deleting them" 18required : false 19default : "false" 20 21runs : 22using : "composite" 23steps : 24- name : Install GitHub CLI if missing 25shell : bash 26run : | 27# e.g. in container jobs, where it is not preinstalled 28if ! command -v gh >/dev/null 2>&1; then 29echo "GitHub CLI not found, installing..." 30if ! command -v curl >/dev/null 2>&1; then 31apt-get update >/dev/null 2>&1 || true 32apt-get install -y curl >/dev/null 2>&1 || true 33fi 34mkdir -p -m 755 /etc/apt/keyrings 35curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg >/dev/null 36chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg 37echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" > /etc/apt/sources.list.d/github-cli.list 38apt-get update >/dev/null 2>&1 || true 39apt-get install -y gh || { echo "Failed to install GitHub CLI (gh)" >&2; exit 1; } 40fi 41command -v gh >/dev/null 2>&1 || { echo "GitHub CLI (gh) is required but could not be installed" >&2; exit 1; } 42 43- name : Clear caches 44shell : bash 45run : | 46 bash scripts/ccache-clear.sh \ 47 --key "${{ inputs.key }}" \ 48 --older "${{ inputs.older }}" \ 49 --min "${{ inputs.min }}" \ 50 ${{ inputs.dry-run == 'true' && '--dry-run' || '' }}