From 9f92aa6be0697f5e044fa6e6c9725b7197fdffeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Bre=C3=9Fler?= Date: Tue, 11 Feb 2025 19:05:29 +0100 Subject: [PATCH] chore(GHA): workaround DMG building error on macos-13 (intel) --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9a54956..a40ce83 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -84,6 +84,12 @@ jobs: if: startsWith(matrix.os, 'macos') shell: sh run: | + if [ ${{ matrix.os }} == "macos-13" ]; then + # workaround 'hdiutil: create failed - Resource busy' + # https://github.com/actions/runner-images/issues/7522#issuecomment-1556766641 + sudo pkill -9 XProtect >/dev/null || true; + while pgrep XProtect; do sleep 3; done; + fi cd dist fn="$(ls -d LiveFT*.app)"; fn="${fn%.*}" hdiutil create -fs HFS+ -srcfolder "$fn.app" -volname "$fn" "$fn.dmg"