@@ -433,6 +433,9 @@ jobs:
433433 path : objdir-clone/
434434 # objdirs are big; don't hold on to them too long.
435435 retention-days : 5
436+ - name : Ensure only useful ccache is kept
437+ if : github.ref == 'refs/heads/master' && env.DISABLE_CCACHE != 'true'
438+ run : ccache --evict-older-than 1d || true
436439 - name : Delete existing ccache before save
437440 if : github.ref == 'refs/heads/master' && env.DISABLE_CCACHE != 'true'
438441 uses : ./.github/actions/delete-cache
@@ -598,6 +601,9 @@ jobs:
598601 path : objdir-clone/
599602 # objdirs are big; don't hold on to them too long.
600603 retention-days : 5
604+ - name : Ensure only useful ccache is kept
605+ if : github.ref == 'refs/heads/master' && env.DISABLE_CCACHE != 'true'
606+ run : ccache --evict-older-than 1d || true
601607 - name : Delete existing ccache before save
602608 if : github.ref == 'refs/heads/master' && env.DISABLE_CCACHE != 'true'
603609 uses : ./.github/actions/delete-cache
@@ -849,7 +855,9 @@ jobs:
849855 retention-days : 2
850856 if-no-files-found : error
851857 overwrite : true
852-
858+ - name : Ensure only useful ccache is kept
859+ if : github.ref == 'refs/heads/master' && env.DISABLE_CCACHE != 'true'
860+ run : ccache --evict-older-than 1d || true
853861 - name : Delete existing ccache before save
854862 if : github.ref == 'refs/heads/master' && env.DISABLE_CCACHE != 'true'
855863 uses : ./.github/actions/delete-cache
0 commit comments