Try to improve ccache usage Android (#1667)
This commit is contained in:
24
.github/workflows/android-ci.yml
vendored
24
.github/workflows/android-ci.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/linux-ci.yml
vendored
2
.github/workflows/linux-ci.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user