Search code examples
maven-3github-actions

GitHub Actions: Cache repo to speed up Maven builds


Maven dependencies are downloaded every time my build workflow is triggered.

Travis CI provides a way to cache Maven repositories. Does GitHub Actions provide similar functionality that allows caching Maven repositories?


Solution

  • Apparently as of 10 September 2019 caching of build dependencies is not present in Github Actions. Github staff have acknowledged that this feature is necessary, and have replied that "We're working on caching packages and artifacts between workflow executions, we'll have it by mid-November [2019]."

    Source: https://github.community/t5/GitHub-Actions/Caching-files-between-GitHub-Action-executions/m-p/30974/highlight/true#M630