mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-06-09 07:16:44 +02:00
d4204b03a5
* ci : ios use macos-15 again * ci : add and test ccache-clear * cont : fix * cont : set permission * cont : another permission * cont : token * cont : print key * cont : bring back perms * cont : test windows * cont : add token * cont : cleanup * ci : make release jobs clean-up their ccache
23 lines
661 B
YAML
23 lines
661 B
YAML
name: "ccache-clear"
|
|
description: "Delete all GitHub Actions caches matching a key prefix"
|
|
inputs:
|
|
key:
|
|
description: "Cache key prefix to match and delete"
|
|
required: true
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Clear caches
|
|
shell: bash
|
|
run: |
|
|
CACHES=$(gh cache list --key "ccache-${{ inputs.key }}" --json id,key --jq '.[] | "\(.id) \(.key)"' 2>/dev/null)
|
|
if [ -z "$CACHES" ]; then
|
|
echo "No caches found with key prefix: ${{ inputs.key }}"
|
|
exit 0
|
|
fi
|
|
while read -r id key; do
|
|
echo "Deleting cache: $id ($key)"
|
|
gh cache delete "$id"
|
|
done <<< "$CACHES"
|