2024-07-13 14:24:13 +00:00
|
|
|
name: Restore Godot build cache
|
|
|
|
description: Restore Godot build cache.
|
2022-09-19 13:15:38 +00:00
|
|
|
inputs:
|
|
|
|
cache-name:
|
|
|
|
description: The cache base name (job name by default).
|
2024-10-11 15:58:28 +00:00
|
|
|
default: ${{ github.job }}
|
2022-09-19 13:15:38 +00:00
|
|
|
scons-cache:
|
2024-10-11 15:58:28 +00:00
|
|
|
description: The SCons cache path.
|
|
|
|
default: ${{ github.workspace }}/.scons-cache/
|
|
|
|
|
2022-09-19 13:15:38 +00:00
|
|
|
runs:
|
2024-10-11 15:58:28 +00:00
|
|
|
using: composite
|
2022-09-19 13:15:38 +00:00
|
|
|
steps:
|
2024-10-11 15:58:28 +00:00
|
|
|
- name: Restore SCons cache directory
|
|
|
|
uses: actions/cache/restore@v4
|
2022-09-19 13:15:38 +00:00
|
|
|
with:
|
2024-10-11 15:58:28 +00:00
|
|
|
path: ${{ inputs.scons-cache }}
|
|
|
|
key: ${{ inputs.cache-name }}-${{ env.GODOT_BASE_BRANCH }}-${{ github.ref }}-${{ github.sha }}
|
|
|
|
|
2022-09-19 13:15:38 +00:00
|
|
|
restore-keys: |
|
2024-10-11 15:58:28 +00:00
|
|
|
${{ inputs.cache-name }}-${{ env.GODOT_BASE_BRANCH }}-${{ github.ref }}-${{ github.sha }}
|
|
|
|
${{ inputs.cache-name }}-${{ env.GODOT_BASE_BRANCH }}-${{ github.ref }}
|
|
|
|
${{ inputs.cache-name }}-${{ env.GODOT_BASE_BRANCH }}-refs/heads/${{ env.GODOT_BASE_BRANCH }}
|
|
|
|
${{ inputs.cache-name }}-${{ env.GODOT_BASE_BRANCH }}
|