Add lto cache to github action cache (#1518)

This commit is contained in:
LoveSy 2022-01-08 21:51:39 +08:00 committed by GitHub
parent 9480844c7b
commit e3fee7806e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -49,12 +49,15 @@ jobs:
key: gradle-builds-core-${{ github.sha }} key: gradle-builds-core-${{ github.sha }}
restore-keys: | restore-keys: |
gradle-builds gradle-builds
- name: Cache Ccache - name: Cache native build
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: ~/.ccache path: |
key: ccache-cache-${{ github.sha }} ~/.ccache
restore-keys: ccache-cache- core/build/.lto-cache
daemon/build/.lto-cache
key: native-cache-${{ github.sha }}
restore-keys: native-cache-
- name: Install ccache - name: Install ccache
run: | run: |
sudo apt-get install -y ccache sudo apt-get install -y ccache