mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
15 lines
396 B
Plaintext
15 lines
396 B
Plaintext
autoload -Uz log_debug log_warning
|
|
|
|
if (( ${+commands[ccache]} )) {
|
|
log_debug "Found ccache at ${commands[ccache]}"
|
|
|
|
if (( ${+CI} )) {
|
|
ccache --set-config=cache_dir="${GITHUB_WORKSPACE:-${HOME}}/.ccache"
|
|
ccache --set-config=max_size="${CCACHE_SIZE:-500M}"
|
|
ccache --set-config=compression=true
|
|
ccache -z > /dev/null
|
|
}
|
|
} else {
|
|
log_warning "No ccache found on the system"
|
|
}
|