File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,22 @@ jobs:
2828 continueOnError : false
2929 enabled : true
3030
31+ - script : swift package compute-checksum libgit2.xcframework.zip
32+ displayName : ' Compute libgit2 XCFramework Checksum'
33+ enabled : true
34+
35+ - publish : $(System.DefaultWorkingDirectory)/libgit2.xcframework.zip
36+ artifact : libgit2
37+ displayName : ' Publish libgit2 XCFramework'
38+ enabled : true
39+
3140 - script : swift package compute-checksum Clibgit2.xcframework.zip
32- displayName : ' Compute XCFramework Checksum'
41+ displayName : ' Compute Clibgit2 XCFramework Checksum'
3342 enabled : true
3443
3544 - publish : $(System.DefaultWorkingDirectory)/Clibgit2.xcframework.zip
3645 artifact : Clibgit2
37- displayName : ' Publish LibGit2 XCFramework'
46+ displayName : ' Publish Clibgit2 XCFramework'
3847 enabled : true
3948
4049 - publish : $(System.DefaultWorkingDirectory)/libpcre.xcframework
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ function build_xcframework() {
217217 done
218218
219219 cd $REPO_ROOT
220- xcodebuild -create-xcframework ${FRAMEWORKS_ARGS[@]} -output C $FWNAME .xcframework
220+ xcodebuild -create-xcframework ${FRAMEWORKS_ARGS[@]} -output $FWNAME .xcframework
221221}
222222
223223# ## Build all frameworks for every available platforms
@@ -237,7 +237,11 @@ done
237237# build_xcframework $fw ${AVAILABLE_PLATFORMS[@]}
238238# done
239239
240+ # Build raw libgit2 XCFramework for Objective-C usage
240241build_xcframework libgit2 ${AVAILABLE_PLATFORMS[@]}
241- copy_modulemap
242+ zip -r libgit2.xcframework.zip libgit2.xcframework/
242243
244+ # Build Clibgit2 XCFramework for use with SwiftGit2
245+ mv libgit2.xcframework Clibgit2.xcframework
246+ copy_modulemap
243247zip -r Clibgit2.xcframework.zip Clibgit2.xcframework/
You can’t perform that action at this time.
0 commit comments