From 7abb82d7e9f343c17a04a3493565bd2375dfdd39 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Fri, 1 Sep 2023 12:20:52 -0700 Subject: [PATCH] zero ccache stats between runs and allow the cache to expand past the persisted max size during the build --- .github/workflows/build-linux.yml | 4 +++- .github/workflows/build-windows.yml | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 55761f18b..6ea827e1e 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -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 diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 67bcf08a5..aee5caefd 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -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