Skip to content

Commit

Permalink
Add initial CI build (#10)
Browse files Browse the repository at this point in the history
Adding an initial CI build. Currently the OrtBasicUsage iOS example is tested.
  • Loading branch information
edgchen1 authored Jun 25, 2021
1 parent a08d465 commit c802952
Show file tree
Hide file tree
Showing 6 changed files with 292 additions and 84 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ This repo has examples that demonstrate the use of [ONNX Runtime](https://github

Outline the examples in the repository.

| Example | Description |
|-------------------|--------------------------------------------|
|[Mobile examples](mobile)| Examples that demonstrate how to use ONNX Runtime Mobile in mobile applications. |
|[JavaScript API examples](js)| Examples that demonstrate how to use JavaScript API for ONNX Runtime. |
| Example | Description | Pipeline Status |
|-|-|-|
| [Mobile examples](mobile) | Examples that demonstrate how to use ONNX Runtime Mobile in mobile applications. | [![Build Status](https://dev.azure.com/onnxruntime/onnxruntime/_apis/build/status/171)](https://dev.azure.com/onnxruntime/onnxruntime/_build/latest?definitionId=171) |
| [JavaScript API examples](js) | Examples that demonstrate how to use JavaScript API for ONNX Runtime. | |

## Contributing

Expand Down
37 changes: 37 additions & 0 deletions ci_build/azure_pipelines/mobile-examples-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
jobs:
- job: BasicUsageIos
pool:
vmImage: "macOS-10.15"

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
addToPath: true
architecture: 'x64'

- script: |
set -e
pip install -r ../model/requirements.txt
../model/gen_model.sh ./OrtBasicUsage/model
workingDirectory: mobile/examples/basic_usage/ios
displayName: "Generate model"
- task: CocoaPods@0
inputs:
workingDirectory: 'mobile/examples/basic_usage/ios'
forceRepoUpdate: false

- task: Xcode@5
inputs:
actions: 'test'
configuration: 'Debug'
sdk: 'iphonesimulator'
xcWorkspacePath: 'mobile/examples/basic_usage/ios/OrtBasicUsage.xcworkspace'
scheme: 'OrtBasicUsage'
xcodeVersion: 'specifyPath'
xcodeDeveloperDir: '/Applications/Xcode_12.4.app/Contents/Developer'
packageApp: false
destinationPlatformOption: 'iOS'
destinationTypeOption: 'simulators'
destinationSimulators: 'iPhone 8'
Loading

0 comments on commit c802952

Please sign in to comment.