From c556dd0aac6684a52d16f20d55a0f450e9aaf3c8 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Sun, 11 Jun 2023 04:17:16 +0800 Subject: [PATCH] Increase sccache hit rate --- .github/workflows/build.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 20f9fac1f..2f65fa70a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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