Skip to content

Commit

Permalink
Try to build Mac DMG more reliably
Browse files Browse the repository at this point in the history
Kill XProtect if running, as per:
actions/runner-images#7522 (comment)

Signed-off-by: Geoff Hutchison <geoff.hutchison@gmail.com>
  • Loading branch information
ghutchis committed Sep 12, 2024
1 parent 9083a95 commit 11d4d5a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,11 @@ jobs:
CODESIGN_IDENTITY: ${{ secrets.CODESIGN_ID }}
PRODUCT_BUNDLE_IDENTIFIER: cc.avogadro
run: |
# be sure the DMG can be created easily
# https://github.com/actions/runner-images/issues/7522#issuecomment-1556766641
echo killing...; sudo pkill -9 XProtect >/dev/null || true;
echo waiting...; while pgrep XProtect; do sleep 3; done;
# create variables
if [ -n "${P12_PASSWORD}" ]; then
CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
Expand Down

0 comments on commit 11d4d5a

Please sign in to comment.