Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -685,9 +685,16 @@ jobs:

- name: Validate stapled DMG
if: steps.signing.outputs.enabled == 'true'
# validate queries Apple too and fails the same way (error 68); retry it like staple.
run: |
xcrun stapler validate "${{ steps.dmg.outputs.dmg_path }}"
for attempt in 1 2 3 4 5; do
xcrun stapler validate "${{ steps.dmg.outputs.dmg_path }}" && break
[ "$attempt" -eq 5 ] && exit 1
echo "Validate attempt $attempt failed, retrying in 30 s"
sleep 30
done
spctl -a -vv -t install "${{ steps.dmg.outputs.dmg_path }}"
timeout-minutes: 10

- name: Upload macOS DMG
uses: actions/upload-artifact@v7
Expand Down
Loading