Skip to content

Commit

Permalink
cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdawson committed Aug 2, 2024
1 parent 0cd071e commit 1b2e1f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/gdext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 1b2e1f0

Please sign in to comment.