Increase sccache hit rate

This commit is contained in:
LoveSy 2023-06-11 04:17:16 +08:00 committed by GitHub
parent d2fbcd07b7
commit c556dd0aac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,9 +23,6 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
env:
SCCACHE_GHA_ENABLED: true
steps:
- name: Check out
uses: actions/checkout@v3
@ -45,7 +42,12 @@ jobs:
python-version: "3.x"
- name: Set up sccache
uses: mozilla-actions/sccache-action@v0.0.3
uses: hendrikmuhs/ccache-action@v1.2
with:
variant: sccache
key: ${{ runner.os }}-${{ github.sha }}
restore-keys: ${{ runner.os }}
max-size: 10000M
- name: Cache Gradle dependencies
uses: actions/cache@v3