From 8271de1570ce883cd10c544dbbf1b044e8b22be8 Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Sun, 3 Aug 2025 16:10:03 +0200 Subject: [PATCH] [CI] Add ccache stats dump --- .github/workflows/mac.yml | 2 ++ .github/workflows/ubuntu.yml | 8 ++++++++ .github/workflows/windows.yml | 6 ++++++ 3 files changed, 16 insertions(+) diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index 50cfbd67b..931fab22a 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -44,6 +44,8 @@ jobs: with: path: install name: ${{ matrix.build_type == 'Debug' && 'macos-clang-debug-install' || 'macos-clang-install' }} + - name: Show ccache stats + run: ccache --show-stats clang-test: needs: - clang-build diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index b2e9d1219..96890adf0 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -53,6 +53,8 @@ jobs: name: ${{ matrix.build_type == 'Debug' && format('ubuntu-gcc-debug-install-{0}', matrix.os) || format('ubuntu-gcc-install-{0}', matrix.os) }} + - name: Show ccache stats + run: ccache --show-stats gcc-test: needs: - gcc-build @@ -153,6 +155,8 @@ jobs: with: path: install name: ubuntu-clang-install-${{ matrix.os }} + - name: Show ccache stats + run: ccache --show-stats clang-test: needs: - clang-build @@ -257,6 +261,8 @@ jobs: with: path: install name: ubuntu-clang-sanitizer-install-${{ matrix.os }} + - name: Show ccache stats + run: ccache --show-stats clang-sanitizer-test: needs: - clang-sanitizer-build @@ -399,3 +405,5 @@ jobs: body: | Coverage report is available for download [here](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) + - name: Show ccache stats + run: ccache --show-stats diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 48e9f1f53..16696a70d 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -33,6 +33,9 @@ jobs: with: path: install name: ${{ matrix.build_type == 'Debug' && 'windows-msvc-debug-install' || 'windows-msvc-install' }} + - name: Show ccache stats + shell: bash + run: ccache --show-stats msvc-test: needs: - msvc-build @@ -117,6 +120,9 @@ jobs: with: path: install name: windows-clang-install + - name: Show ccache stats + shell: bash + run: ccache --show-stats clang-test: needs: - clang-build