Skip to content

Commit 680450e

Browse files
authored
Merge pull request InsightSoftwareConsortium#5924 from blowekamp/ccache_stats
ENH: In GHA display ccache configuration and statistics
2 parents bc0e5fc + c16c4e9 commit 680450e

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/arm.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,12 @@ jobs:
112112
ccache-v1-${{ matrix.os }}-
113113
ccache-v1-
114114
115-
- name: Evict old ccache entries
115+
- name: Show ccache configuration, stats and maintenance
116116
shell: bash
117-
run: ccache --evict-older-than 7d
117+
run: |
118+
ccache --zero-stats
119+
ccache --evict-older-than 7d
120+
ccache --show-config
118121
119122
- name: Set up Python
120123
if: matrix.python-version != ''
@@ -167,3 +170,6 @@ jobs:
167170
ctest -S ${{ github.workspace }}/ITK-dashboard/dashboard.cmake -VV -j 4 ${{ matrix.ctest-options }}
168171
env:
169172
CTEST_OUTPUT_ON_FAILURE: 1
173+
- name: ccache stats
174+
if: always()
175+
run: ccache --show-stats

.github/workflows/pixi.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,12 @@ jobs:
7272
restore-keys: |
7373
ccache-v1-${{ matrix.os }}-pixi-cxx-
7474
75-
- name: Evict old ccache entries
75+
- name: Show ccache configuration, stats and maintenance
7676
shell: bash
77-
run: ccache --evict-older-than 7d
77+
run: |
78+
ccache --zero-stats
79+
ccache --evict-older-than 7d
80+
ccache --show-config
7881
7982
- name: Disk space reporting BEFORE (optimize free-disk-space)
8083
run: |
@@ -146,3 +149,6 @@ jobs:
146149
df -h
147150
echo "****** df -h /"
148151
df -h /
152+
- name: ccache stats
153+
if: always()
154+
run: ccache --show-stats

0 commit comments

Comments
 (0)