File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ name : 22sang Repro hdiutil DMG Error (CPack)
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ repeat :
7+ description : " How many times to repeat packaging"
8+ required : false
9+ default : " 10"
10+
11+ jobs :
12+ repro-dmg :
13+ runs-on : macos-13
14+ name : Reproduce hdiutil Error
15+
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v4
19+
20+ - name : Disable Spotlight Indexing (optional stress mitigation)
21+ run : sudo mdutil -i off /
22+
23+ - name : Configure via CMake
24+ run : |
25+ cmake -S . -B build \
26+ -DCMAKE_BUILD_TYPE=Release \
27+ -DCMAKE_OSX_ARCHITECTURES=x86_64
28+
29+ - name : Build App Bundle
30+ run : cmake --build build
31+
32+ - name : Attempt .dmg Creation Repeatedly (via CPack)
33+ run : |
34+ for i in $(seq 1 ${{ github.event.inputs.repeat }}); do
35+ echo "======= Attempt $i ======="
36+ cmake --build build --target package && echo "✅ Success on attempt $i" && continue
37+
38+ echo "::error::❌ DMG creation failed on attempt $i"
39+ echo "Running diagnostics..."
40+ lsof | grep .dmg || true
41+ ps aux | grep hdiutil || true
42+ exit 1
43+ done
44+
45+ - name : Upload Last DMG
46+ if : success()
47+ uses : actions/upload-artifact@v4
48+ with :
49+ name : DMGRepro
50+ path : build/*.dmg
You can’t perform that action at this time.
0 commit comments