Skip to content

Commit 6b2ff40

Browse files
committed
[CI] Add jobs to test static frameworks
1 parent 43122d4 commit 6b2ff40

File tree

2 files changed

+89
-0
lines changed

2 files changed

+89
-0
lines changed

.ado/apple-pr.yml

+87
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,93 @@ jobs:
192192
# xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/release_overrides.xcconfig'
193193
# new_arch_enabled: '1'
194194
# use_hermes: '1'
195+
'iOS Paper Debug JSC Static Framework':
196+
packager_platform: 'ios'
197+
xcode_sdk: iphonesimulator
198+
xcode_scheme: 'RNTester'
199+
xcode_configuration: 'Debug'
200+
xcode_destination: 'platform=iOS Simulator,OS=$(ios_version),name=$(ios_simulator)'
201+
xcode_actions: 'build test'
202+
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/debug_overrides.xcconfig'
203+
new_arch_enabled: '0'
204+
use_hermes: '0'
205+
'iOS Paper Release JSC Static Framework':
206+
packager_platform: 'ios'
207+
xcode_sdk: iphonesimulator
208+
xcode_scheme: 'RNTester'
209+
xcode_configuration: 'Release'
210+
xcode_destination: 'platform=iOS Simulator,OS=$(ios_version),name=$(ios_simulator)'
211+
xcode_actions: 'build'
212+
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/release_overrides.xcconfig'
213+
new_arch_enabled: '0'
214+
use_hermes: '0'
215+
use_frameworks: 'static'
216+
'macOS Paper Debug JSC Static Framework':
217+
packager_platform: 'macos'
218+
xcode_sdk: macosx
219+
xcode_scheme: 'RNTester-macOS'
220+
xcode_configuration: 'Debug'
221+
xcode_destination: 'platform=macOS,arch=x86_64'
222+
xcode_actions: 'build test'
223+
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/debug_overrides.xcconfig'
224+
new_arch_enabled: '0'
225+
use_hermes: '0'
226+
use_frameworks: 'static'
227+
'macOS Paper Release JSC Static Framework':
228+
packager_platform: 'macos'
229+
xcode_sdk: macosx
230+
xcode_scheme: 'RNTester-macOS'
231+
xcode_configuration: 'Release'
232+
xcode_destination: 'platform=macOS,arch=x86_64'
233+
xcode_actions: 'build'
234+
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/release_overrides.xcconfig'
235+
new_arch_enabled: '0'
236+
use_hermes: '0'
237+
use_frameworks: 'static'
238+
'iOS Fabric Debug JSC Static Framework':
239+
packager_platform: 'ios'
240+
xcode_sdk: iphonesimulator
241+
xcode_scheme: 'RNTester'
242+
xcode_configuration: 'Debug'
243+
xcode_destination: 'platform=iOS Simulator,OS=$(ios_version),name=$(ios_simulator)'
244+
xcode_actions: 'build' # https://github.com/facebook/react-native/issues/39719 Tests fail on RNTester with `RCT_NEW_ARCH_ENABLED`
245+
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/debug_overrides.xcconfig'
246+
new_arch_enabled: '1'
247+
use_hermes: '0'
248+
use_frameworks: 'static'
249+
'iOS Fabric Release JSC Static Framework':
250+
packager_platform: 'ios'
251+
xcode_sdk: iphonesimulator
252+
xcode_scheme: 'RNTester'
253+
xcode_configuration: 'Release'
254+
xcode_destination: 'platform=iOS Simulator,OS=$(ios_version),name=$(ios_simulator)'
255+
xcode_actions: 'build'
256+
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/release_overrides.xcconfig'
257+
new_arch_enabled: '1'
258+
use_hermes: '0'
259+
use_frameworks: 'static'
260+
'macOS Fabric Debug JSC Static Framework':
261+
packager_platform: 'macos'
262+
xcode_sdk: macosx
263+
xcode_scheme: 'RNTester-macOS'
264+
xcode_configuration: 'Debug'
265+
xcode_destination: 'platform=macOS,arch=x86_64'
266+
xcode_actions: 'build' # https://github.com/facebook/react-native/issues/39719 Tests fail on RNTester with `RCT_NEW_ARCH_ENABLED`
267+
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/debug_overrides.xcconfig'
268+
new_arch_enabled: '1'
269+
use_hermes: '0'
270+
use_frameworks: 'static'
271+
'macOS Fabric Release JSC Static Framework':
272+
packager_platform: 'macos'
273+
xcode_sdk: macosx
274+
xcode_scheme: 'RNTester-macOS'
275+
xcode_configuration: 'Release'
276+
xcode_destination: 'platform=macOS,arch=x86_64'
277+
xcode_actions: 'build'
278+
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/release_overrides.xcconfig'
279+
new_arch_enabled: '1'
280+
use_hermes: '0'
281+
use_frameworks: 'static'
195282
pool:
196283
vmImage: $(VmImageApple)
197284
demands: ['xcode', 'sh', 'npm']

.ado/templates/apple-job-react-native.yml

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ parameters:
99
xcode_version: ''
1010
new_arch_enabled: ''
1111
use_hermes: ''
12+
use_frameworks: ''
1213

1314
steps:
1415
- template: apple-tools-setup.yml
@@ -31,6 +32,7 @@ steps:
3132
env:
3233
RCT_NEW_ARCH_ENABLED: $(new_arch_enabled)
3334
USE_HERMES: $(use_hermes)
35+
USE_FRAMEWORKS: $(use_frameworks)
3436

3537
- task: ShellScript@2
3638
displayName: 'Setup packager and WebSocket test server'

0 commit comments

Comments
 (0)