From b068492d10d8852adb2e208edcc18a6cc077beb3 Mon Sep 17 00:00:00 2001 From: FooIbar <118464521+FooIbar@users.noreply.github.com> Date: Mon, 21 Oct 2024 12:13:03 +0800 Subject: [PATCH] Refine caching configuration in CI --- .github/workflows/ci.yml | 4 ++-- .github/workflows/releases.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 45b1f1025..8ca5dd635 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,7 +79,7 @@ jobs: uses: actions/cache@v4 with: path: app/.cxx - key: cmake-default-${{ hashFiles('gradle/libs.versions.toml', 'app/build.gradle.kts', 'app/src/main/cpp/CMakeLists.txt') }} + key: cmake-default-${{ hashFiles('gradle/libs.versions.toml', 'app/build.gradle.kts', 'app/src/main/cpp/CMakeLists.txt', 'app/src/main/rust/Cargo.lock') }} restore-keys: cmake-default- - name: Build @@ -147,7 +147,7 @@ jobs: uses: actions/cache@v4 with: path: app/.cxx - key: cmake-marshmallow-${{ hashFiles('gradle/libs.versions.toml', 'app/build.gradle.kts', 'app/src/main/cpp/CMakeLists.txt') }} + key: cmake-marshmallow-${{ hashFiles('gradle/libs.versions.toml', 'app/build.gradle.kts', 'app/src/main/cpp/CMakeLists.txt', 'app/src/main/rust/Cargo.lock') }} restore-keys: cmake-marshmallow- - name: Build diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index c5ced08b5..b537de232 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -38,10 +38,10 @@ jobs: workspaces: "./app/src/main/rust" - name: CMake Cache - uses: actions/cache@v4 + uses: actions/cache/restore@v4 with: path: app/.cxx - key: cmake-${{ hashFiles('gradle/libs.versions.toml', 'app/build.gradle.kts', 'app/src/main/cpp/CMakeLists.txt') }} + key: cmake- restore-keys: cmake- - name: Setup Gradle