Skip to content

Commit

Permalink
Build Debug only
Browse files Browse the repository at this point in the history
  • Loading branch information
Saadnajmi committed May 3, 2024
1 parent e58ab4f commit 4db6574
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 120 deletions.
126 changes: 10 additions & 116 deletions .ado/apple-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,198 +31,93 @@ jobs:
displayName: PR
strategy:
matrix:
'iOS Paper Debug JSC':
'iOS Paper JSC':
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':
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'
'macOS Paper Debug JSC':
'macOS Paper JSC':
packager_platform: 'macos'
xcode_sdk: macosx
xcode_scheme: 'RNTester-macOS'
xcode_configuration: 'Debug'
xcode_destination: 'platform=macOS,arch=arm64'
xcode_actions: 'build test'
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/debug_overrides.xcconfig'
new_arch_enabled: '0'
use_hermes: '0'
'macOS Paper Release JSC':
packager_platform: 'macos'
xcode_sdk: macosx
xcode_scheme: 'RNTester-macOS'
xcode_configuration: 'Release'
xcode_destination: 'platform=macOS,arch=arm64'
xcode_actions: 'build'
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/release_overrides.xcconfig'
new_arch_enabled: '0'
use_hermes: '0'
'iOS Fabric Debug JSC':
'iOS Fabric JSC':
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'
'iOS Fabric Release JSC':
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'
'macOS Fabric Debug JSC':
'macOS Fabric JSC':
packager_platform: 'macos'
xcode_sdk: macosx
xcode_scheme: 'RNTester-macOS'
xcode_configuration: 'Debug'
xcode_destination: 'platform=macOS,arch=arm64'
xcode_actions: 'build test'
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/debug_overrides.xcconfig'
new_arch_enabled: '1'
use_hermes: '0'
'macOS Fabric Release JSC':
packager_platform: 'macos'
xcode_sdk: macosx
xcode_scheme: 'RNTester-macOS'
xcode_configuration: 'Release'
xcode_actions: 'build'
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/release_overrides.xcconfig'
new_arch_enabled: '1'
use_hermes: '0'
'visionOS Paper Debug JSC':
'visionOS Paper JSC':
packager_platform: 'ios'
xcode_sdk: xros
xcode_scheme: 'RNTester-visionOS'
xcode_configuration: 'Debug'
xcode_actions: 'build'
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/debug_overrides.xcconfig'
new_arch_enabled: '0'
use_hermes: '0'
'visionOS Paper Release JSC':
packager_platform: 'ios'
xcode_sdk: xros
xcode_scheme: 'RNTester-visionOS'
xcode_configuration: 'Release'
xcode_actions: 'build'
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/release_overrides.xcconfig'
new_arch_enabled: '0'
use_hermes: '0'
'visionOS Fabric Debug JSC':
'visionOS Fabric JSC':
packager_platform: 'ios'
xcode_sdk: xros
xcode_scheme: 'RNTester-visionOS'
xcode_configuration: 'Debug'
xcode_actions: 'build'
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/debug_overrides.xcconfig'
new_arch_enabled: '1'
use_hermes: '0'
'visionOS Fabric Release JSC':
packager_platform: 'ios'
xcode_sdk: xros
xcode_scheme: 'RNTester-visionOS'
xcode_configuration: 'Release'
xcode_destination: 'platform=macOS,arch=arm64'
xcode_actions: 'build'
xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/release_overrides.xcconfig'
new_arch_enabled: '1'
use_hermes: '0'
# Disable Hermes Jobs for now
# 'iOS Paper Debug Hermes':
# 'iOS Paper Hermes':
# 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: '1'
# 'iOS Paper Release Hermes':
# packager_platform: 'ios'
# xcode_sdk: iphonesimulator
# xcode_scheme: 'RNTester'
# xcode_configuration: 'Release'
# xcode_destination: 'platform=iOS Simulator,OS=$(ios_version),name=$(ios_simulator)'
# xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/release_overrides.xcconfig'
# xcode_actions: 'build'
# new_arch_enabled: '0'
# use_hermes: '1'
# 'macOS Paper Debug Hermes':
# 'macOS Paper Hermes':
# packager_platform: 'macos'
# xcode_sdk: macosx
# xcode_scheme: 'RNTester-macOS'
# xcode_configuration: 'Debug'
# xcode_destination: 'platform=macOS,arch=arm64'
# xcode_actions: 'build test'
# xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/debug_overrides.xcconfig'
# new_arch_enabled: '0'
# use_hermes: '1'
# 'macOS Paper Release Hermes':
# packager_platform: 'macos'
# xcode_sdk: macosx
# xcode_scheme: 'RNTester-macOS'
# xcode_configuration: 'Release'
# xcode_actions: 'build'
# xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/release_overrides.xcconfig'
# new_arch_enabled: '0'
# use_hermes: '1'
# 'iOS Fabric Debug Hermes':
# 'iOS Fabric Hermes':
# packager_platform: 'ios'
# xcode_sdk: iphonesimulator
# xcode_scheme: 'RNTester'
# xcode_configuration: 'Debug'
# xcode_actions: 'build test'
# xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/debug_overrides.xcconfig'
# new_arch_enabled: '1'
# use_hermes: '1'
# 'iOS Fabric Release Hermes':
# packager_platform: 'ios'
# xcode_sdk: iphonesimulator
# xcode_scheme: 'RNTester'
# xcode_configuration: 'Release'
# xcode_actions: 'build'
# xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/release_overrides.xcconfig'
# new_arch_enabled: '1'
# use_hermes: '0'
# 'macOS Fabric Debug Hermes':
# 'macOS Fabric Hermes':
# packager_platform: 'macos'
# xcode_sdk: macosx
# xcode_scheme: 'RNTester-macOS'
# xcode_configuration: 'Debug'
# xcode_actions: 'build test'
# xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/debug_overrides.xcconfig'
# new_arch_enabled: '1'
# use_hermes: '1'
# 'macOS Fabric Release Hermes':
# packager_platform: 'macos'
# xcode_sdk: macosx
# xcode_scheme: 'RNTester-macOS'
# xcode_configuration: 'Release'
# xcode_actions: 'build'
# xcode_extraArgs: '-xcconfig $(Build.Repository.LocalPath)/.ado/xcconfig/release_overrides.xcconfig'
# new_arch_enabled: '1'
# use_hermes: '1'
pool:
vmImage: $(VmImageApple)
timeoutInMinutes: 90 # how long to run the job before automatically cancelling
Expand All @@ -232,7 +127,6 @@ jobs:
parameters:
packager_platform: $(packager_platform)
xcode_sdk: $(xcode_sdk)
xcode_configuration: $(xcode_configuration)
xcode_scheme: $(xcode_scheme)
xcode_actions: $(xcode_actions)
slice_name: $(slice_name)
Expand Down
6 changes: 2 additions & 4 deletions .ado/templates/apple-job-react-native.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
parameters:
packager_platform: ''
xcode_sdk: ''
xcode_configuration: ''
xcode_scheme: ''
xcode_actions: ''
xcode_destination: ''
Expand Down Expand Up @@ -50,10 +49,9 @@ steps:
displayName: 'curl the packager'
- task: Xcode@5
displayName: 'Xcode ${{ parameters.xcode_actions }} ${{ parameters.xcode_configuration }} ${{ parameters.xcode_sdk }} ${{ parameters.xcode_scheme }}'
displayName: 'Xcode ${{ parameters.xcode_actions }} ${{ parameters.xcode_sdk }} ${{ parameters.xcode_scheme }}'
inputs:
actions: '${{ parameters.xcode_actions }}'
configuration: ${{ parameters.xcode_configuration }}
sdk: ${{ parameters.xcode_sdk }}
xcWorkspacePath: packages/rn-tester/RNTesterPods.xcworkspace
scheme: ${{ parameters.xcode_scheme }}
Expand All @@ -63,7 +61,7 @@ steps:
packageApp: false
teamId: '$(XCodeSigningMicrosoftTeamID)'
args: '-destination "${{ parameters.xcode_destination }}" -verbose -derivedDataPath DerivedData ${{ parameters.xcode_extraArgs }}'
exportPath: '$(agent.builddirectory)/output/${{ parameters.xcode_sdk }}/${{ parameters.xcode_configuration }}'
exportPath: '$(agent.builddirectory)/output/${{ parameters.xcode_sdk }}/'
useXcpretty: true
publishJUnitResults: true
xctoolReporter: 'junit:test-results.xml'
Expand Down

0 comments on commit 4db6574

Please sign in to comment.