zero ccache stats between runs

and allow the cache to expand past the persisted max size during the build
develop
Myk Taylor 2023-09-01 12:20:52 -07:00
parent 0550562859
commit 7abb82d7e9
No known key found for this signature in database
2 changed files with 7 additions and 2 deletions

@ -142,9 +142,11 @@ jobs:
- name: Finalize cache
if: inputs.platform-files
run: |
ccache --show-stats --verbose
ccache --max-size 40M
ccache --cleanup
ccache --show-stats --verbose
ccache --max-size 500M
ccache --zero-stats
- name: Save ccache
if: inputs.platform-files && !inputs.cache-readonly
uses: actions/cache/save@v3

@ -45,6 +45,7 @@ on:
type: boolean
default: false
jobs:
build-win64:
name: Build win64
@ -101,9 +102,11 @@ jobs:
- name: Finalize cache
run: |
cd build
ccache -d win64-cross/ccache --show-stats --verbose
ccache -d win64-cross/ccache --max-size 150M
ccache -d win64-cross/ccache --cleanup
ccache -d win64-cross/ccache --show-stats --verbose
ccache -d win64-cross/ccache --max-size 500M
ccache -d win64-cross/ccache --zero-stats
- name: Save ccache
if: inputs.platform-files && !inputs.cache-readonly
uses: actions/cache/save@v3