From 0af21505d71fd12cc387ca96c1b6419a618e7b82 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 24 Dec 2024 00:00:22 +0100 Subject: [PATCH] git: Add retry mechanism for creating dmg on x86 mac --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4912c6c42..07525ed99 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -305,7 +305,13 @@ jobs: cd bundle ln -s /Applications Applications cd .. - hdiutil create -volname "ImHex" -srcfolder bundle -ov -format UDZO imhex-${{ env.IMHEX_VERSION }}-macOS${{ matrix.suffix }}-x86_64.dmg + for i in $(seq 1 10); do + if hdiutil create -volname "ImHex" -srcfolder bundle -ov -format UDZO imhex-${{ env.IMHEX_VERSION }}-macOS${{ matrix.suffix }}-x86_64.dmg; then + echo "Created dmg after ${i} attempts" + break + fi + sleep 10 + done - name: ⬆️ Upload DMG uses: actions/upload-artifact@v4