From 6b2ff40e02d728789f1cdcde22dda75ba101300c Mon Sep 17 00:00:00 2001 From: Saad Najmi Date: Thu, 2 Nov 2023 14:57:06 -0700 Subject: [PATCH] [CI] Add jobs to test static frameworks --- .ado/apple-pr.yml | 87 +++++++++++++++++++++++ .ado/templates/apple-job-react-native.yml | 2 + 2 files changed, 89 insertions(+) diff --git a/.ado/apple-pr.yml b/.ado/apple-pr.yml index 5077c6795f1f1f..a16148636f57ec 100644 --- a/.ado/apple-pr.yml +++ b/.ado/apple-pr.yml @@ -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'] diff --git a/.ado/templates/apple-job-react-native.yml b/.ado/templates/apple-job-react-native.yml index f97bcc2332bbe7..d45f8036cd8d27 100644 --- a/.ado/templates/apple-job-react-native.yml +++ b/.ado/templates/apple-job-react-native.yml @@ -9,6 +9,7 @@ parameters: xcode_version: '' new_arch_enabled: '' use_hermes: '' + use_frameworks: '' steps: - template: apple-tools-setup.yml @@ -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'