Try to improve ccache usage Android (#1667)

This commit is contained in:
Bart Louwers
2023-09-23 20:36:40 +02:00
committed by GitHub
parent 28813f10ae
commit a6238c36dd
2 changed files with 4 additions and 22 deletions

View File

@@ -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

View File

@@ -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