Skip to content

Commit

Permalink
Add CI test to cover iOS dynamic framework usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
edgchen1 committed Oct 4, 2023
1 parent 1bc1157 commit 0bb023e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions tools/ci_build/github/azure-pipelines/post-merge-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,3 +259,37 @@ stages:
script: docker image rm $(dockerImageTag)
workingDirectory: '$(Build.BinariesDirectory)'
condition: succeededOrFailed()

- stage: IosDynamicFramework
dependsOn: []
jobs:
- job: IosDynamicFramework

pool:
vmImage: "macOS-13"

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "3.9"
addToPath: true
architecture: "x64"

- template: templates/use-xcode-version.yml

- script: |
pip install -r tools/ci_build/github/apple/ios_packaging.requirements.txt
displayName: "Install Python requirements"
- script: |
python tools/ci_build/github/apple/build_ios_framework.py \
--build_dir "$(Build.BinariesDirectory)/ios_framework" \
--build_dynamic_framework \
tools/ci_build/github/apple/default_mobile_ios_framework_build_settings.json
displayName: "Build iOS dynamic framework"
- script: |
python tools/ci_build/github/apple/test_ios_packages.py \
--framework_info_file "$(Build.BinariesDirectory)/ios_framework/framework_info.json" \
--c_framework_dir "$(Build.BinariesDirectory)/ios_framework/framework_out"
displayName: "Test pod with iOS dynamic framework"

0 comments on commit 0bb023e

Please sign in to comment.