File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
.github/workflows/scripts/build-multi-platform-binary Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ VERSION=${TAG_NAME#v}
77BINARY_NAME=" BinaryDependenciesManager"
88PLATFORM=${PLATFORM:- macOS}
99ARCH=${ARCH:- universal}
10- ARCHIVE_NAME=" BinaryDependenciesManager -${PLATFORM } -${ARCH } -${VERSION } .zip"
10+ ARCHIVE_NAME=" ${BINARY_NAME} -${VERSION } -${PLATFORM } -${ARCH } .zip"
1111
1212echo " Building binary for platform: $PLATFORM , architecture: $ARCH , version: $VERSION "
1313
@@ -20,6 +20,9 @@ if [ "$PLATFORM" == "macOS" ] && [ "$ARCH" == "universal" ]; then
2020 swift build --configuration release --arch x86_64 --arch arm64
2121 cp .build/apple/Products/Release/$BINARY_NAME build/$BINARY_NAME
2222
23+ # Verify the universal binary
24+ echo " Verifying universal binary..."
25+ lipo -info build/$BINARY_NAME
2326elif [ " $PLATFORM " == " macOS" ] && [[ " $ARCH " == " arm64" || " $ARCH " == " x86_64" ]]; then
2427
2528 # Build $ARCH binary for macOS
You can’t perform that action at this time.
0 commit comments