File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,6 @@ jobs:
118118 - name : Restore ccache cache
119119 if : ${{ inputs.download_ccache && github.ref != 'refs/heads/develop' }}
120120 uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
121- id : restore_cache
122121 with :
123122 path : ${{ env.CCACHE_DIR }}
124123 key : ${{ steps.cache_key.outputs.key }}
@@ -160,17 +159,14 @@ jobs:
160159 name : build_time_report_${{ runner.os }}_${{ inputs.build_type }}_${{ inputs.conan_profile }}
161160 path : build_time_report.txt
162161
163- - name : Show ccache's statistics
162+ - name : Show ccache's statistics and zero it
164163 if : ${{ inputs.download_ccache }}
165- id : ccache_stats
166164 run : |
167- ccache -s > /tmp/ccache.stats
168- miss_rate=$(cat /tmp/ccache.stats | grep 'Misses' | head -n1 | sed 's/.*(\(.*\)%).*/\1/')
169- echo "miss_rate=${miss_rate}" >> $GITHUB_OUTPUT
170- cat /tmp/ccache.stats
165+ ccache --show-stats
166+ ccache --zero-stats
171167
172168 - name : Save ccache cache
173- if : ${{ inputs.upload_ccache && github.ref == 'refs/heads/develop' && (steps.restore_cache.outputs.cache-hit != 'true' || steps.ccache_stats.outputs.miss_rate == '100.0') }}
169+ if : ${{ inputs.upload_ccache && github.ref == 'refs/heads/develop' }}
174170 uses : actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
175171 with :
176172 path : ${{ env.CCACHE_DIR }}
You can’t perform that action at this time.
0 commit comments