2021-09-01 15:26:01 +00:00
|
|
|
name: Setup Godot build cache
|
|
|
|
description: Setup Godot build cache.
|
|
|
|
inputs:
|
|
|
|
cache-name:
|
|
|
|
description: The cache base name (job name by default).
|
|
|
|
default: "${{github.job}}"
|
|
|
|
scons-cache:
|
|
|
|
description: The scons cache path.
|
|
|
|
default: "${{github.workspace}}/.scons-cache/"
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
# Upload cache on completion and check it out now
|
|
|
|
- name: Load .scons_cache directory
|
2022-03-23 07:04:46 +00:00
|
|
|
uses: actions/cache@v3
|
2021-09-01 15:26:01 +00:00
|
|
|
with:
|
|
|
|
path: ${{inputs.scons-cache}}
|
|
|
|
key: ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
|
|
|
|
restore-keys: |
|
|
|
|
${{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}}
|