Skip to content

Cache Petalinux builds between pipelines

Karol Krizka requested to merge kk_cachebuild into main

Improves the caching setup for the petalinux build stage of the CI such that it is usable. This MR takes a repeated build time from 2 hours to around 30 minutes. The cache is shared among all CERN runners.

The caching is done on a per-branch basis to reduce problems from reusing the cache. Unclear if this is necessary, since petalinux-build seems smart enough in picking up changes so far.

The following directories are cached:

petalinux/build/bootgen.bif
petalinux/build/cache
petalinux/build/conf
petalinux/build/misc
petalinux/build/sstate-cache
petalinux/components

The following directories are not cached. This is to reduce the size of the cache. Large caches cannot be uploaded to CERN's infrastructure.

petalinux/build/tmp
petalinux/build/download
petalinux/*.log

More information on GitLab CI caching.

Edited by Karol Krizka

Merge request reports

Loading