Skip to content

Commit 9dc83e8

Browse files
committed
[LOCAL] Fix CI: build rntester dynamic-frameworks lane from source
1 parent 896fcb3 commit 9dc83e8

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

.github/actions/test-ios-rntester/action.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ inputs:
2727
config of the 2026-07-03 SocketRocket dual-copy regression).
2828
required: false
2929
default: auto
30+
build-from-source:
31+
description: >-
32+
Force building ReactCore/ReactNativeDependencies from source, disabling the
33+
prebuilt Maven fallback (RCT_USE_PREBUILT_RNCORE / RCT_USE_RN_DEP, which
34+
otherwise default to '1'). Used by the from-source dynamic-frameworks lane.
35+
required: false
36+
default: false
3037

3138
runs:
3239
using: composite
@@ -100,6 +107,17 @@ runs:
100107
export RCT_USE_LOCAL_RN_DEP="/tmp/third-party/ReactNativeDependencies${{ inputs.flavor }}.xcframework.tar.gz"
101108
export RCT_TESTONLY_RNCORE_TARBALL_PATH="/tmp/ReactCore/ReactCore${{ inputs.flavor }}.xcframework.tar.gz"
102109
fi
110+
if [[ "${{ inputs.build-from-source }}" == "true" ]]; then
111+
# Force building ReactCore/ReactNativeDependencies from source. Both
112+
# RCT_USE_PREBUILT_RNCORE and RCT_USE_RN_DEP default to '1', so on a stable
113+
# branch (where released Maven artifacts exist for the current version) the
114+
# install would otherwise consume those prebuilts instead of building from
115+
# source. That is wrong for the from-source dynamic-frameworks lane and also
116+
# fails when a published artifact predates newer podspec layout changes
117+
# (e.g. a React core tarball without ReactNativeHeaders.xcframework).
118+
export RCT_USE_PREBUILT_RNCORE=0
119+
export RCT_USE_RN_DEP=0
120+
fi
103121
104122
cd packages/rn-tester
105123

.github/workflows/test-all.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ jobs:
136136
with:
137137
flavor: ${{ matrix.flavor }}
138138
use-frameworks: true
139+
build-from-source: true
139140
run-unit-tests: false # tests for dynamic frameworks are already run in the test_ios_rntester job; this is to just a test build from source (no prebuilds)
140141

141142
test_ios_rntester:

0 commit comments

Comments
 (0)