Skip to content
  • georg's avatar
    CI: Fix and improve APT caching, to speed up CI jobs · ac20c72b
    georg authored
    Up until now, the APT caching didn't work correctly in all cases. This
    commit fixes the problems, and, at the same time, improves the handling:
    It checks first, if the APT cache directory does exist. Only if it
    doesn't, it creates the necessary directories and updates the APT
    package lists. This prevents unneeded runs of 'apt-get update'.
    
    Additionally, this ensures, that in almost all cases, packages don't
    need to get downloaded, but instead, they're available already in the
    local filesystem, just waiting to be installed.
    
    Combining both steps leads to reduced run times per CI job by ~ 10%.
    ac20c72b
Validating GitLab CI configuration… Learn more