action.yml 842 B

12345678910111213141516171819202122
  1. name: Setup Godot build cache
  2. description: Setup 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. # Upload cache on completion and check it out now
  14. - name: Load .scons_cache directory
  15. uses: actions/cache@v3
  16. with:
  17. path: ${{inputs.scons-cache}}
  18. key: ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
  19. restore-keys: |
  20. ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
  21. ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}
  22. ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}