Skip to content

Commit

Permalink
Fix extensions nuget pipeline (#629)
Browse files Browse the repository at this point in the history
* fix extensions nuget ci

* exclude macos target for nuget ci pipeline as well

* add a comment

---------

Co-authored-by: rachguo <[email protected]>
  • Loading branch information
YUNQIUGUO and rachguo authored Jan 4, 2024
1 parent 1fb2d28 commit b072e94
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .pipelines/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,9 @@ stages:
--pod-version ${ORT_EXTENSIONS_POD_VERSION}
displayName: "Assemble pod"
# Note: In this CI, we only specify to build for iphonesimulator x86_64 arch in build_framework.py command however
# this test app's podfile by default is setup for all platforms, and due to that we have to explicitly exclude the
# macos target below when installing the pod for the test app.
- script: |
ORT_EXTENSIONS_LOCAL_POD_PATH=$(Build.BinariesDirectory)/pod_staging \
EXCLUDE_MACOS_TARGET=true \
Expand Down
7 changes: 7 additions & 0 deletions .pipelines/templates/build-package-for-ios-cocoapods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ jobs:
python ./tools/ios/build_xcframework.py \
--output_dir $(Build.BinariesDirectory)/xcframework_out \
--config Release \
--platform_arch iphonesimulator x86_64 \
--platform_arch iphonesimulator arm64 \
--platform_arch iphoneos arm64 \
--mode pack_xcframework_only
displayName: "Pack xcframework for distributed building"
Expand All @@ -120,8 +123,12 @@ jobs:
displayName: "Lint pod"
workingDirectory: $(Build.BinariesDirectory)/pod_staging
# Note: In this CI, we exclude macos arch in the build_framework.py command however the test app's podfile by default
# is setup for all platforms, and due to that we have explicitly exclude the macos target below when installing the pod
# for the test app.
- script: |
ORT_EXTENSIONS_LOCAL_POD_PATH=$(Build.BinariesDirectory)/pod_staging \
EXCLUDE_MACOS_TARGET=true \
pod install
displayName: "Install pods for OrtExtensionsUsage"
workingDirectory: $(Build.SourcesDirectory)/test/ios/OrtExtensionsUsage
Expand Down

0 comments on commit b072e94

Please sign in to comment.