diff --git a/.github/workflows/android-ci.yml b/.github/workflows/android-ci.yml index 3a52b6197..3c8472b8d 100644 --- a/.github/workflows/android-ci.yml +++ b/.github/workflows/android-ci.yml @@ -86,29 +86,9 @@ jobs: run: npm install --ignore-scripts working-directory: platform/android - - name: Install ccache - run: sudo apt-get install -y ccache - - - name: Prepare ccache - run: ccache --clear - - - name: Cache ccache - uses: actions/cache@v3 - env: - cache-name: ccache-v1 + - uses: hendrikmuhs/ccache-action@v1.2 with: - path: ~/.ccache' - key: ${{ env.cache-name }}-${{ runner.os }}-${{ github.job }}-${{ github.ref }}-${{ github.sha }}-${{ github.head_ref }} - restore-keys: | - ${{ env.cache-name }}-${{ runner.os }}-${{ github.job }}-${{ github.ref }}-${{ github.sha }} - ${{ env.cache-name }}-${{ runner.os }}-${{ github.job }}-${{ github.ref }} - ${{ env.cache-name }}-${{ runner.os }}-${{ github.job }} - - - name: Clear ccache statistics - run: | - ccache --zero-stats - ccache --max-size=2G - ccache --show-stats + key: ${{ github.job }} - name: restore-gradle-cache uses: actions/cache@v3 diff --git a/.github/workflows/linux-ci.yml b/.github/workflows/linux-ci.yml index b45002d25..d107e9d8f 100644 --- a/.github/workflows/linux-ci.yml +++ b/.github/workflows/linux-ci.yml @@ -59,6 +59,8 @@ jobs: languages: cpp - uses: hendrikmuhs/ccache-action@v1.2 + with: + key: ${{ github.job }} - name: Get latest CMake and Ninja uses: lukka/get-cmake@latest