action.yml 803 B

123456789101112131415161718192021
  1. name: Restore Godot build cache
  2. description: Restore Godot build cache.
  3. inputs:
  4. cache-name:
  5. description: The cache base name (job name by default).
  6. default: "${{github.job}}"
  7. scons-cache:
  8. description: The scons cache path.
  9. default: "${{github.workspace}}/.scons-cache/"
  10. runs:
  11. using: "composite"
  12. steps:
  13. - name: Restore .scons_cache directory
  14. uses: actions/cache/restore@v4
  15. with:
  16. path: ${{inputs.scons-cache}}
  17. key: ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
  18. restore-keys: |
  19. ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
  20. ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}
  21. ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}