Skip to content

Commit

Permalink
fix: 🐛 fix godot bin cache
Browse files Browse the repository at this point in the history
  • Loading branch information
KANAjetzt committed Dec 14, 2023
1 parent 54a089e commit 3aab38c
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/actions/godot-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,15 @@ runs:
run: |
echo "CACHE_NAME=${{ runner.OS }}-Godot_v${{ inputs.godot-version }}-${{ inputs.godot-status-version }}" >> "$GITHUB_ENV"
- name: "Build Cache"
uses: actions/cache@v3
id: godot-cache-binary
- name: "Godot Cache Restore"
uses: actions/cache/restore@v3
id: godot-restore-cache
with:
path: ${{ inputs.godot-cache-path }}
key: ${{ env.CACHE_NAME }}
restore-keys: ${{ env.CACHE_NAME }}

- name: "Download and Install Godot ${{ inputs.godot-version }}"
if: steps.godot-cache-binary.outputs.cache-hit != 'true'
if: steps.godot-restore-cache.outputs.cache-hit != 'true'
continue-on-error: false
shell: bash
run: |
Expand All @@ -60,4 +59,11 @@ runs:
mv ${{ inputs.godot-cache-path }}/$GODOT_BIN ${{ inputs.godot-cache-path }}/godot
chmod u+x ${{ inputs.godot-cache-path }}/godot
echo "${{ inputs.godot-cache-path }}/godot"
echo "${{ inputs.godot-cache-path }}/godot"
- name: "Godot Cache Save"
if: steps.godot-restore-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v3
with:
path: ${{ inputs.godot-cache-path }}
key: ${{ steps.godot-restore-cache.outputs.cache-primary-key }}

0 comments on commit 3aab38c

Please sign in to comment.