From 1b2e1f060cf36431fe4ad055e6b3da5776521878 Mon Sep 17 00:00:00 2001 From: Patrick Dawson Date: Fri, 2 Aug 2024 07:00:49 +0200 Subject: [PATCH] cache key --- .github/workflows/gdext.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gdext.yml b/.github/workflows/gdext.yml index 0977133..55174a5 100644 --- a/.github/workflows/gdext.yml +++ b/.github/workflows/gdext.yml @@ -35,13 +35,17 @@ jobs: with: vcpkgGitCommitId: ${{ env.vcpkg_tag }} + - shell: bash + run: | + echo "cache_key=godot-cpp-${{ runner.os }}-$ImageVersion-${{ hashFiles('gdext/godot-cpp/gdextension/extension_api.json') }}" >> $GITHUB_ENV + - uses: actions/cache@v4 id: cache-godot-cpp if: github.ref_type != 'tag' with: path: | gdext/scons_cache - key: godot-cpp-${{ runner.os }}-${{ env.ImageVersion }}-${{ hashFiles('gdext/godot-cpp/gdextension/extension_api.json') }} + key: ${{ env.cache_key }} - name: Build if: github.ref_type != 'tag'