mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-07 05:53:59 -07:00
chore: add ccache report workflow
This commit is contained in:
parent
8180d2e3b0
commit
158d9c043e
2 changed files with 74 additions and 0 deletions
33
.github/workflows/cache-report.yml
vendored
Normal file
33
.github/workflows/cache-report.yml
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# Reports total GitHub Actions cache usage for BuildKit blob caches (used by docker-release).
|
||||
# Run locally: .ci/gh_buildkit_cache_usage.sh
|
||||
|
||||
name: Cache usage report
|
||||
|
||||
on:
|
||||
schedule:
|
||||
# Mondays 09:00 UTC
|
||||
- cron: '0 9 * * 1'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
report:
|
||||
name: buildkit-blob cache usage
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install jq
|
||||
run: sudo apt-get update && sudo apt-get install -y jq
|
||||
|
||||
- name: Report cache usage
|
||||
id: cache_report
|
||||
run: |
|
||||
./.ci/gh_buildkit_cache_usage.sh buildkit-blob | tee report.txt
|
||||
echo "summary<<EOF" >> "$GITHUB_STEP_SUMMARY"
|
||||
cat report.txt >> "$GITHUB_STEP_SUMMARY"
|
||||
echo "EOF" >> "$GITHUB_STEP_SUMMARY"
|
||||
Loading…
Add table
Add a link
Reference in a new issue