We are curretnly trying to reduce the amount of compute units used by our CI.
Thats why I split out mix deps.get && mix compile
into a job that produces artifacts, which then can get used in the follow up jobs to save up some compute time.
This seems to work well in theory, and as we have 5 jobs based on the build output, we expect roughly 3 equivalents of mix compile
to be saved.
Sadly, it appears that in the subsequent jobs, the project itself is still built each time.
So far, the effect of extracting the build into a previous step is therefore barely better than caching.
To comparision see this, where the 2 apps in the umbrella are built anew:
While the previous step does properly build it here as well:
The downloaded artifacts have all the BEAM modules and application manfests as I would expect them.
Has anyone an idea how to get this working, without doing the repeated compilation of the projects application again and again?
This repeated builds of the project members seems to be one of the most costly factors in the CI.