diff options
| author | Shauren <shauren.trinity@gmail.com> | 2025-11-27 00:10:51 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2025-11-27 00:10:51 +0100 |
| commit | 6160d75889996e7f20e8aba3d92d5e61786869cf (patch) | |
| tree | baac5463e08670625619418db92ef4ebab4d10e9 | |
| parent | 15f1c8e395886758bdee987e70820d120d82da2c (diff) | |
CI/GitHub: Keep ccache size as small as possible by evicting entries not accessed by current build instead
| -rw-r--r-- | .github/workflows/linux-build.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml index 15a9f960d0d..4cbc29e0e60 100644 --- a/.github/workflows/linux-build.yml +++ b/.github/workflows/linux-build.yml @@ -29,6 +29,7 @@ jobs: id: strings shell: bash run: | + echo "build-start=$EPOCHSECONDS" >> "$GITHUB_OUTPUT" echo "build-output-dir=${{ github.workspace }}/bin" >> "$GITHUB_OUTPUT" echo "ccache-key-prefix=ubuntu-${{ matrix.cc }}-${{ github.base_ref || github.ref_name }}" >> "$GITHUB_OUTPUT" - name: Dependencies @@ -65,6 +66,7 @@ jobs: ccache -z cmake --build ${{ steps.strings.outputs.build-output-dir }} ccache -s + ccache --evict-older-than $(($EPOCHSECONDS - ${{ steps.strings.outputs.build-start }}))s - name: Unit tests run: | cmake --build ${{ steps.strings.outputs.build-output-dir }} --target test |
