setup_ccache 396 B

1234567891011121314
  1. autoload -Uz log_debug log_warning
  2. if (( ${+commands[ccache]} )) {
  3. log_debug "Found ccache at ${commands[ccache]}"
  4. if (( ${+CI} )) {
  5. ccache --set-config=cache_dir="${GITHUB_WORKSPACE:-${HOME}}/.ccache"
  6. ccache --set-config=max_size="${CCACHE_SIZE:-500M}"
  7. ccache --set-config=compression=true
  8. ccache -z > /dev/null
  9. }
  10. } else {
  11. log_warning "No ccache found on the system"
  12. }