From 6e3a9132e49224eba92ac196e83068b27beccd6d Mon Sep 17 00:00:00 2001 From: momo5502 Date: Thu, 29 May 2025 12:43:11 +0200 Subject: [PATCH] Add cache for api set dumper --- .github/workflows/build.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3c9c2914..57e2b96c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -86,6 +86,25 @@ jobs: - name: Enable Developer Command Prompt uses: ilammy/msvc-dev-cmd@v1.13.0 + - name: Setup sccache environement + shell: bash + run: | + echo SCCACHE_DIR=${{github.workspace}}/sccache >> $GITHUB_ENV + echo SCCACHE_CACHE_SIZE=300M >> $GITHUB_ENV + + - name: Recover sccache + uses: actions/cache@v3 + with: + path: ${{env.SCCACHE_DIR}} + key: sccache dumper ${{ github.head_ref || github.ref_name }} + restore-keys: | + sccache dumper ${{ github.event.repository.default_branch }} + + - name: Install sccache + uses: mozilla-actions/sccache-action@v0.0.9 + with: + disable_annotations: true + - name: CMake Build run: cmake --preset=release && cmake --build --preset=release -t dump-apiset @@ -259,7 +278,7 @@ jobs: shell: bash run: | echo SCCACHE_DIR=${{github.workspace}}/sccache >> $GITHUB_ENV - echo SCCACHE_CACHE_SIZE=500M >> $GITHUB_ENV + echo SCCACHE_CACHE_SIZE=300M >> $GITHUB_ENV - name: Recover sccache uses: actions/cache@v3 @@ -271,6 +290,8 @@ jobs: - name: Install sccache uses: mozilla-actions/sccache-action@v0.0.9 + with: + disable_annotations: true - name: Setup Android Environment Variables shell: bash