Skip to content

Commit

Permalink
Increase sccache hit rate
Browse files Browse the repository at this point in the history
  • Loading branch information
yujincheng08 authored Jun 10, 2023
1 parent d2fbcd0 commit c556dd0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c556dd0

Please sign in to comment.