From e8b30b5eed9e93f531cc4ce46a705ca111da229d Mon Sep 17 00:00:00 2001 From: LoveSy Date: Thu, 8 Jun 2023 18:52:06 +0800 Subject: [PATCH] Increase sccache hit rate See Mozilla-Actions/sccache-action#50 --- .github/workflows/build.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1da2877695ec..3d429bbb35d8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,8 +26,6 @@ jobs: env: NDK_CCACHE: sccache RUSTC_WRAPPER: sccache - SCCACHE_GHA_ENABLED: true - CARGO_INCREMENTAL: 0 steps: - name: Check out @@ -48,7 +46,11 @@ 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 }} - name: Cache Gradle dependencies uses: actions/cache@v3