-
Notifications
You must be signed in to change notification settings - Fork 133
/
Copy pathtest_install_ios.yml
39 lines (32 loc) · 1.2 KB
/
test_install_ios.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
parameters:
name: ''
vmImage: ''
deploymentTarget: '15'
jobs:
- job: ${{ parameters.name }}
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
timeoutInMinutes: 40
pool:
vmImage: ${{ parameters.vmImage }}
steps:
- template: cmake.yml
parameters:
vmImage: ${{ parameters.vmImage }}
- script: |
sudo xcode-select --switch /Applications/Xcode_$(XCODE_VERSION).app/Contents/Developer
displayName: 'Select Xcode $(XCODE_VERSION)'
- script: |
cmake -G Xcode -B buildiOS -D IOS=ON -D DEPLOYMENT_TARGET=${{ parameters.deploymentTarget }} -D CMAKE_UNITY_BUILD=$(UNITY_BUILD) -D BABYLON_DEBUG_TRACE=ON -D CMAKE_IOS_INSTALL_COMBINED=NO
displayName: 'Generate iOS solution'
- task: Xcode@5
inputs:
xcWorkspacePath: 'buildiOS/BabylonNative.xcodeproj'
scheme: 'Playground'
sdk: 'iphoneos'
useXcpretty: false
configuration: Release
displayName: 'Build Playground iOS'
- script: |
cmake --install buildiOS --prefix="$(Build.SourcesDirectory)/Install"
lipo -info $(Build.SourcesDirectory)/Install/lib/libxr.a
displayName: 'Install'