Allow opt-in builds cache on Blacksmith and Depot runners

This commit is contained in:
Shivam Mathur
2026-10-05 22:53:54 +05:30
parent 421f97feaf
commit 57747c1c10
3 changed files with 32 additions and 2 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ add_php() {
php_keg="php@$version$suffix"
php_formula="shivammathur/php/$php_keg"
if [[ "$existing_version" = "false" || -n "$suffix" || "$action" = "upgrade" ]]; then
if [ "$(uname -m)" = "x86_64" ] || { [ "${runner:?}" != "self-hosted" ] && [ "${use_package_cache:-true}" != "false" ]; }; then
if [ "$(uname -m)" = "x86_64" ] || { [ "${runner:?}" != "self-hosted" ] && [ "${use_builds_cache:-true}" != "false" ]; }; then
setup_cached_versions && return 0
[ "$(uname -m)" != "x86_64" ] || return 1
fi