From ec8a54906c6514dad9b5c2e32fd06aabad9966f1 Mon Sep 17 00:00:00 2001 From: FooIbar <118464521+FooIbar@users.noreply.github.com> Date: Sun, 18 Feb 2024 11:34:12 +0800 Subject: [PATCH] Optimize CI caching policy --- .github/workflows/ci.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a158ed0d4..19fc41af1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,7 +41,7 @@ jobs: - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 with: - gradle-home-cache-cleanup: true + cache-read-only: true - name: Spotless Check run: ./gradlew spotlessCheck @@ -70,7 +70,7 @@ jobs: - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 with: - gradle-home-cache-cleanup: true + cache-read-only: true - name: CMake Cache uses: actions/cache@v4 @@ -221,15 +221,14 @@ jobs: with: workspaces: "./app/src/main/rust" shared-key: ${{ runner.os }} - save-if: "false" - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 with: - gradle-home-cache-cleanup: true + cache-read-only: true - name: CMake Cache - uses: actions/cache/restore@v4 + uses: actions/cache@v4 with: path: | app/.cxx