Skip to content

Commit

Permalink
ci: mac: kill XProtect before creating the dmg to avoid busy errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
adriweb committed Nov 11, 2024
1 parent d3a7eb3 commit d7760ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ jobs:
if: runner.os == 'macOS'
run: |
brew install create-dmg || brew install create-dmg; # we try twice because sometimes it fails...
echo killing XProtect...; sudo pkill -9 XProtect >/dev/null || true;
echo waiting...; while pgrep XProtect; do sleep 3; done;
cp -a "${CEDEV}" "${TOOLCHAIN_PATH}/resources/macOS/dmg/contents/";
# The codesign variable may be empty (for forks) but that's fine, create-dmg only does code-signing if it's not empty.
createDmgArgs="--codesign '${{ secrets.MACOS_CODESIGN_IDENT }}' \
Expand Down

0 comments on commit d7760ec

Please sign in to comment.