From 11d4d5a9a297dac39728553c9202d8b9ee9ae943 Mon Sep 17 00:00:00 2001 From: Geoff Hutchison Date: Thu, 12 Sep 2024 16:43:07 -0400 Subject: [PATCH] Try to build Mac DMG more reliably Kill XProtect if running, as per: https://github.com/actions/runner-images/issues/7522#issuecomment-1556766641 Signed-off-by: Geoff Hutchison --- .github/workflows/build_cmake.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index 997887a196..db43ac8c4f 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -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