Skip to content

Commit

Permalink
[CI] Add jobs to test static frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
Saadnajmi committed Nov 2, 2023
1 parent 43122d4 commit 6b2ff40
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 0 deletions.
87 changes: 87 additions & 0 deletions .ado/apple-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,93 @@ jobs:
# xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/release_overrides.xcconfig'
# new_arch_enabled: '1'
# use_hermes: '1'
'iOS Paper Debug JSC Static Framework':
packager_platform: 'ios'
xcode_sdk: iphonesimulator
xcode_scheme: 'RNTester'
xcode_configuration: 'Debug'
xcode_destination: 'platform=iOS Simulator,OS=$(ios_version),name=$(ios_simulator)'
xcode_actions: 'build test'
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/debug_overrides.xcconfig'
new_arch_enabled: '0'
use_hermes: '0'
'iOS Paper Release JSC Static Framework':
packager_platform: 'ios'
xcode_sdk: iphonesimulator
xcode_scheme: 'RNTester'
xcode_configuration: 'Release'
xcode_destination: 'platform=iOS Simulator,OS=$(ios_version),name=$(ios_simulator)'
xcode_actions: 'build'
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/release_overrides.xcconfig'
new_arch_enabled: '0'
use_hermes: '0'
use_frameworks: 'static'
'macOS Paper Debug JSC Static Framework':
packager_platform: 'macos'
xcode_sdk: macosx
xcode_scheme: 'RNTester-macOS'
xcode_configuration: 'Debug'
xcode_destination: 'platform=macOS,arch=x86_64'
xcode_actions: 'build test'
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/debug_overrides.xcconfig'
new_arch_enabled: '0'
use_hermes: '0'
use_frameworks: 'static'
'macOS Paper Release JSC Static Framework':
packager_platform: 'macos'
xcode_sdk: macosx
xcode_scheme: 'RNTester-macOS'
xcode_configuration: 'Release'
xcode_destination: 'platform=macOS,arch=x86_64'
xcode_actions: 'build'
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/release_overrides.xcconfig'
new_arch_enabled: '0'
use_hermes: '0'
use_frameworks: 'static'
'iOS Fabric Debug JSC Static Framework':
packager_platform: 'ios'
xcode_sdk: iphonesimulator
xcode_scheme: 'RNTester'
xcode_configuration: 'Debug'
xcode_destination: 'platform=iOS Simulator,OS=$(ios_version),name=$(ios_simulator)'
xcode_actions: 'build' # https://github.com/facebook/react-native/issues/39719 Tests fail on RNTester with `RCT_NEW_ARCH_ENABLED`
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/debug_overrides.xcconfig'
new_arch_enabled: '1'
use_hermes: '0'
use_frameworks: 'static'
'iOS Fabric Release JSC Static Framework':
packager_platform: 'ios'
xcode_sdk: iphonesimulator
xcode_scheme: 'RNTester'
xcode_configuration: 'Release'
xcode_destination: 'platform=iOS Simulator,OS=$(ios_version),name=$(ios_simulator)'
xcode_actions: 'build'
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/release_overrides.xcconfig'
new_arch_enabled: '1'
use_hermes: '0'
use_frameworks: 'static'
'macOS Fabric Debug JSC Static Framework':
packager_platform: 'macos'
xcode_sdk: macosx
xcode_scheme: 'RNTester-macOS'
xcode_configuration: 'Debug'
xcode_destination: 'platform=macOS,arch=x86_64'
xcode_actions: 'build' # https://github.com/facebook/react-native/issues/39719 Tests fail on RNTester with `RCT_NEW_ARCH_ENABLED`
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/debug_overrides.xcconfig'
new_arch_enabled: '1'
use_hermes: '0'
use_frameworks: 'static'
'macOS Fabric Release JSC Static Framework':
packager_platform: 'macos'
xcode_sdk: macosx
xcode_scheme: 'RNTester-macOS'
xcode_configuration: 'Release'
xcode_destination: 'platform=macOS,arch=x86_64'
xcode_actions: 'build'
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/release_overrides.xcconfig'
new_arch_enabled: '1'
use_hermes: '0'
use_frameworks: 'static'
pool:
vmImage: $(VmImageApple)
demands: ['xcode', 'sh', 'npm']
Expand Down
2 changes: 2 additions & 0 deletions .ado/templates/apple-job-react-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ parameters:
xcode_version: ''
new_arch_enabled: ''
use_hermes: ''
use_frameworks: ''

steps:
- template: apple-tools-setup.yml
Expand All @@ -31,6 +32,7 @@ steps:
env:
RCT_NEW_ARCH_ENABLED: $(new_arch_enabled)
USE_HERMES: $(use_hermes)
USE_FRAMEWORKS: $(use_frameworks)

- task: ShellScript@2
displayName: 'Setup packager and WebSocket test server'
Expand Down

0 comments on commit 6b2ff40

Please sign in to comment.