From 9300a3d9ce2b6aa55c13e6f06e9a0cc56412b880 Mon Sep 17 00:00:00 2001 From: FooIbar <118464521+FooIbar@users.noreply.github.com> Date: Sat, 21 Oct 2023 16:26:14 +0800 Subject: [PATCH] Don't write cmake cache every time --- .github/workflows/ci.yml | 2 +- .github/workflows/releases.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d64e7cb10..6c12d88ed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,7 +57,7 @@ jobs: path: | app/.cxx app/src/main/cpp/nettle/nettle - key: ${{ runner.os }}-cmake-${{ github.run_id }} + key: ${{ runner.os }}-cmake-${{ hashFiles('app/src/main/cpp/CMakeLists.txt') }} restore-keys: ${{ runner.os }}-cmake- - name: Build OSS diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index daaae3951..81d223d3d 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -35,7 +35,7 @@ jobs: path: | app/.cxx app/src/main/cpp/nettle/nettle - key: ${{ runner.os }}-cmake-${{ github.run_id }} + key: ${{ runner.os }}-cmake-${{ hashFiles('app/src/main/cpp/CMakeLists.txt') }} restore-keys: ${{ runner.os }}-cmake- - name: Gradle Build