abarichello / godot-ci

Docker image to export Godot Engine games. Templates for Gitlab CI and GitHub Actions to deploy to GitLab Pages/GitHub Pages/Itch.io.
https://hub.docker.com/r/barichello/godot-ci
MIT License
759 stars 133 forks source link

Add caching for imported assets #11

Closed realkotob closed 4 years ago

realkotob commented 4 years ago

This enables caching for imported assets between each run. This massively speeds up the export stage for big projects (which needs ~30 minutes to import 150MB for a 3D project).

Note that this saves the cache after a stage is done therefore new imports are not shared by the 3 platforms if they run in parallel. So if you add new files it will still import them once for each platform (but will not import them again in the future, which is what matters). There is no way to optimize this further at the moment since there is no separate CLI command to reimportat assets.

realkotob commented 4 years ago

Relevant docs:

abarichello commented 4 years ago

Thanks for the contribution!