Skip to content

Commit ff1f892

Browse files
committed
Add macOS DMG preparation step to prevent volume detachment errors
1 parent ceec0bf commit ff1f892

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@ jobs:
8585
- name: Run tests
8686
run: ctest --test-dir build --output-on-failure
8787

88+
- name: Prepare macOS for DMG creation
89+
if: runner.os == 'macOS'
90+
run: |
91+
# Unmount any stale volumes
92+
hdiutil detach "/Volumes/Virtual MIDI Controller" -force || true
93+
# Disable Spotlight indexing to prevent volume locking
94+
sudo mdutil -a -i off
95+
8896
- name: Installer
8997
run: cmake --build build --target installer --config Release
9098

0 commit comments

Comments
 (0)