1. 21 4月, 2020 3 次提交
  2. 20 4月, 2020 16 次提交
  3. 18 4月, 2020 1 次提交
  4. 17 4月, 2020 6 次提交
  5. 16 4月, 2020 13 次提交
  6. 15 4月, 2020 1 次提交
    • A
      gitlab: Enable improved ccache usage · a158eb5c
      Andrea Bolognani 提交于
      Setting CC="ccache cc" works in most cases, but sometimes it will
      break the build: in particular, we have experienced issues in the
      past with that approach when using cgo to build our Go bindings.
      
      A more robust approach is to have a directory containing symlinks
      from the compiler name to the ccache binary: in that case, ccache
      itself will invoke the compiler, and the build system will be none
      the wiser.
      
      Since libvirt-ci commit 2563aebb6c5c, container images contain a
      suitable symlink directory, so all that's needed to enable the new
      approach is to add this directory to $PATH.
      
      Since we're touching this anyway, we make a few more changes:
      $CCACHE_DIR is no longer created manually, because ccache will
      take care of creating it for us if it doesn't already exist; the
      ccache setup is moved out of the job template and into
      script_variables, removing unnecessary duplication; a limit is
      set on the size of the cache (500 MB, which is twice the amount
      used by a fresh build on my Fedora 31 machine).
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      a158eb5c