git: Add retry mechanism for creating dmg on x86 mac
This commit is contained in:
parent
2ae69e8e72
commit
0af21505d7
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -305,7 +305,13 @@ jobs:
|
|||||||
cd bundle
|
cd bundle
|
||||||
ln -s /Applications Applications
|
ln -s /Applications Applications
|
||||||
cd ..
|
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
|
- name: ⬆️ Upload DMG
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user