Skip to content

Commit

Permalink
ios: enable lto and zip
Browse files Browse the repository at this point in the history
  • Loading branch information
1Conan committed Mar 18, 2024
1 parent 4e3f187 commit fca9e3a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ jobs:
- name: Upload xcframework
uses: actions/upload-artifact@v3
with:
name: NodeMobile.xcframework
path: out_ios/NodeMobile.xcframework
name: NodeMobile.xcframework.zip
path: out_ios/NodeMobile.xcframework.zip
6 changes: 6 additions & 0 deletions tools/ios_framework_prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ compile_for_arch() {
--dest-cpu=${TARGET_ARCH} \
--cross-compiling \
--enable-static \
--enable-lto \
--without-etw \
--without-dtrace \
--without-npm \
Expand Down Expand Up @@ -195,3 +196,8 @@ xcodebuild -create-xcframework \
-framework out_ios/Release-visionsimulator/NodeMobile.framework \
-debug-symbols $(pwd)/out_ios/Release-visionsimulator/NodeMobile.framework.dSYM \
-output out_ios/NodeMobile.xcframework

pushd out_ios
zip -r NodeMobile.xcframework.zip NodeMobile.xcframework
sha256sum NodeMobile.xcframework.zip
popd

0 comments on commit fca9e3a

Please sign in to comment.