-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a7ed199
commit 8cf7dda
Showing
19 changed files
with
695 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
parameters: | ||
- name: build_config | ||
type: string | ||
default: 'release' | ||
|
||
steps: | ||
|
||
- checkout: self | ||
clean: true | ||
path: onnxruntime-genai | ||
submodules: recursive | ||
|
||
- template: utils/set-genai-version.yml | ||
|
||
- template: utils/set-nightly-build-option-variable.yml | ||
|
||
- script: | | ||
set -e | ||
python3 -m pip install requests | ||
python3 tools/ci_build/github/apple/build_apple_framework.py \ | ||
--build_dir "$(Build.BinariesDirectory)/apple_framework" \ | ||
tools/ci_build/github/apple/default_full_ios_framework_build_settings.json | ||
mkdir $(Build.BinariesDirectory)/artifacts | ||
mkdir -p $(Build.BinariesDirectory)/artifacts_staging/onnxruntime-genai-ios-xcframework-$(genai_version) | ||
cp -R $(Build.BinariesDirectory)/apple_framework/framework_out/onnxruntime-genai.xcframework \ | ||
$(Build.BinariesDirectory)/artifacts_staging/onnxruntime-genai-ios-xcframework-$(genai_version) | ||
pushd $(Build.BinariesDirectory)/artifacts_staging | ||
zip -vr $(Build.BinariesDirectory)/artifacts/onnxruntime_genai_ios_xcframework.zip \ | ||
onnxruntime-genai-ios-xcframework-$(genai_version) | ||
popd | ||
displayName: 'Build Apple XCFramework' | ||
workingDirectory: '$(Build.Repository.LocalPath)' | ||
|
||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish Artifact: ONNXRuntime GenAI XCFramework' | ||
inputs: | ||
ArtifactName: capi-onnxruntime-genai-ios-xcframework | ||
PathtoPublish: '$(Build.BinariesDirectory)/artifacts' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleExecutable</key> | ||
<string>${MACOSX_FRAMEWORK_NAME}</string> | ||
<key>CFBundleName</key> | ||
<string>${MACOSX_FRAMEWORK_NAME}</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>${MACOSX_FRAMEWORK_IDENTIFIER}</string> | ||
<key>CFBundleVersion</key> | ||
<string>${ORT_VERSION}</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>${ORT_VERSION}</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundlePackageType</key> | ||
<string>FMWK</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.