action.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. name: 'Show Cache Stats'
  2. description: 'Displays statistics for ccache and Bazel remote cache to help analyze cache performance and hit rates'
  3. runs:
  4. using: 'composite'
  5. steps:
  6. - name: Show ccache Stats
  7. shell: bash
  8. working-directory: ${{ github.workspace }}
  9. run: |
  10. set -euo pipefail
  11. echo "===================="
  12. echo "=== ccache stats ==="
  13. echo "===================="
  14. ccache -s || true
  15. echo "====================="
  16. echo "=== ccache config ==="
  17. echo "====================="
  18. ccache -p || true
  19. echo "====================="
  20. - name: Show ccache folder Stats
  21. shell: bash
  22. working-directory: ${{ github.workspace }}
  23. run: |
  24. set -euo pipefail
  25. echo "==============="
  26. echo "=== .ccache ==="
  27. echo "==============="
  28. du -sh /home/runner/.ccache || true
  29. ls -l /home/runner/.ccache || true
  30. echo "==============="
  31. - name: Show Bazel Cache folder Stats
  32. shell: bash
  33. working-directory: ${{ github.workspace }}
  34. run: |
  35. set -euo pipefail
  36. echo "===================="
  37. echo "=== .cache/bazel ==="
  38. echo "===================="
  39. du -sh /home/runner/.cache/bazel || true
  40. ls -l /home/runner/.cache/bazel || true
  41. echo "===================="
  42. - name: Show ld cache folder Stats
  43. shell: bash
  44. working-directory: ${{ github.workspace }}
  45. run: |
  46. set -euo pipefail
  47. echo "================="
  48. echo "=== .ld_cache ==="
  49. echo "================="
  50. du -sh /home/runner/.ld_cache || true
  51. ls -l /home/runner/.ld_cache || true
  52. echo "================="