Skip to content

Commit d7760ec

Browse files
committed
ci: mac: kill XProtect before creating the dmg to avoid busy errors.
1 parent d3a7eb3 commit d7760ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/make.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ jobs:
162162
if: runner.os == 'macOS'
163163
run: |
164164
brew install create-dmg || brew install create-dmg; # we try twice because sometimes it fails...
165+
echo killing XProtect...; sudo pkill -9 XProtect >/dev/null || true;
166+
echo waiting...; while pgrep XProtect; do sleep 3; done;
165167
cp -a "${CEDEV}" "${TOOLCHAIN_PATH}/resources/macOS/dmg/contents/";
166168
# The codesign variable may be empty (for forks) but that's fine, create-dmg only does code-signing if it's not empty.
167169
createDmgArgs="--codesign '${{ secrets.MACOS_CODESIGN_IDENT }}' \

0 commit comments

Comments
 (0)