CI: Add brute-force workaround for macOS disk image creation failure
Suggestion by GitHub's macOS image maintainer is to kill XProtectBehaviourService when "Resource busy" error occurs on macOS 13 runners.
This commit is contained in:
parent
cdced774e8
commit
c6b05ff393
1 changed files with 1 additions and 0 deletions
1
.github/scripts/utils.zsh/create_diskimage
vendored
1
.github/scripts/utils.zsh/create_diskimage
vendored
|
|
@ -27,6 +27,7 @@ safe_hdiutil() {
|
|||
|
||||
if (( _status )) {
|
||||
log_warning "Unable to run 'hdiutil ${@}' (attempt #${i}). Retrying."
|
||||
if (( ${+CI} )) sudo pkill -9 XProtect >/dev/null || true
|
||||
sleep ${_backoff[${i}]}
|
||||
} else {
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue