You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: fix DMG creation to properly handle distribution packages
- Prioritize DirectHW.pkg (distribution package) copying first
- Fallback to individual component packages if distribution package missing
- Remove duplicate package copying logic that was causing issues
- Ensure DMG creation finds the available artifacts from successful builds
The workflow was creating DirectHW.pkg successfully but DMG creation
was failing because it wasn't checking for the distribution package
in the right location.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .github/workflows/objective-c-xcode.yml
+23-18Lines changed: 23 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -217,39 +217,44 @@ jobs:
217
217
218
218
# Copy build artifacts - check multiple possible build directories
219
219
ARTIFACTS_FOUND=false
220
-
for BUILD_DIR in "DirectHW/build/buildlatest/Release" "DirectHW/build/build15/Release" "DirectHW/build/build11/Release" "DirectHW/build/Release" "DirectHW/build/*/Release"; do
220
+
221
+
# First check for distribution package (preferred)
for PKG in "DirectHW/DirectHW-lib.pkg" "DirectHW/DirectHW-kext.pkg" "DirectHW/DirectHW-framework.pkg"; do
229
+
if [ -f "$PKG" ]; then
230
+
cp "$PKG" "dmg_contents/$(basename "$PKG")"
231
+
echo "✅ Copied $(basename "$PKG")"
232
+
ARTIFACTS_FOUND=true
233
+
fi
234
+
done
235
+
fi
236
+
237
+
# Also check for build directory artifacts
238
+
for BUILD_DIR in "DirectHW/build/build15/Release" "DirectHW/build/buildlatest/Release" "DirectHW/build/build11/Release" "DirectHW/build/Release" "DirectHW/build/*/Release"; do
221
239
if [ -d "$BUILD_DIR" ]; then
222
240
echo "📁 Found build directory for DMG: $BUILD_DIR"
223
-
241
+
224
242
# Copy available artifacts (may not have all types due to build failures)
0 commit comments