microsoft/onnxruntime-extensions

Public

mirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
c0260ec704bf0434958dff3508406e5d06442d4b

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.pipelines/templates/run-with-ios-simulator-steps.yml

23lines · modepreview

parameters:
- name: steps
  type: stepList

steps:
- bash: |
    set -e -x

    ORT_EXTENSIONS_BUILD_SIMULATOR_ID=$(xcrun simctl create iPhoneSimulatorForPipeline com.apple.CoreSimulator.SimDeviceType.iPhone-8)

    echo "##vso[task.setvariable variable=ORT_EXTENSIONS_BUILD_SIMULATOR_ID]${ORT_EXTENSIONS_BUILD_SIMULATOR_ID}"
  displayName: "Create iPhone simulator"

- ${{ parameters.steps }}

- bash: |
    set -e -x

    if [[ -n "${ORT_EXTENSIONS_BUILD_SIMULATOR_ID-}" ]]; then
      xcrun simctl delete ${ORT_EXTENSIONS_BUILD_SIMULATOR_ID}
    fi
  displayName: "Delete iPhone simulator"
  condition: always()