Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitLab CI Yocto Build - How to use SSTATE and DL_DIR

How to configure GitLab CI to store the SSTATE_DIR and the DL_DIR between several jobs? Currently, bitbake rebuilds the complete project every time, which is very time consuming. So i would like to use the sstage again. I tried caching, but building time increases effectively, due to the big zip/unzip overhead.

I don't even need a shared sstate between several projects, just a method to store the output between jobs.

I'm using Gitlab 11.2.3 with a shell executor as runner.

Thanks a lot!

like image 637
Franz Forstmayr Avatar asked Oct 28 '25 17:10

Franz Forstmayr


1 Answers

In version 11.10, GIT_CLEAN_FLAGS was added, which could be used to achieve what you want to do with the shell executor.

For completeness: when using the docker executor, this can be achieved by using docker volumes, which are persistent across builds.

like image 135
Étienne Avatar answered Oct 31 '25 13:10

Étienne