Skip to content

Commit b0422d4

Browse files
cipolleschifacebook-github-bot
authored andcommitted
Connect ReactNativeDependencies with ios jobs
Summary: This change connects the RNDependencies we prebuild in CI with the other iOS jobs we have. By doing so, we aim to speed up the build time in CI, saving time and money. ## Changelog: [Internal] - Connect the ReactNativeDependencies in CI Differential Revision: D71034587
1 parent 533588f commit b0422d4

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

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

+10-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ runs:
4646
uses: ruby/[email protected]
4747
with:
4848
ruby-version: ${{ inputs.ruby-version }}
49+
- name: Download ReactNativeDependencies
50+
uses: actions/download-artifact@v4
51+
with:
52+
name: ReactNativeDependencies${{ inputs.flavor }}.framework.dSYM.tar.gz
53+
path: packages/react-native/third-party
54+
- name: Print third-party folder
55+
shell: bash
56+
run: ls -lR packages/react-native/third-party
4957
- name: Install iOS dependencies - Configuration ${{ inputs.flavor }}; New Architecture ${{ inputs.architecture }}; JS Engine ${{ inputs.jsengine }}
5058
shell: bash
5159
run: |
@@ -78,7 +86,8 @@ runs:
7886
BUILD_TYPE="${{ inputs.flavor }}"
7987
TARBALL_FILENAME=$(node ../react-native/scripts/hermes/get-tarball-name.js --buildType "$BUILD_TYPE")
8088
HERMES_PATH="$HERMES_WS_DIR/hermes-runtime-darwin/$TARBALL_FILENAME"
81-
HERMES_ENGINE_TARBALL_PATH="$HERMES_PATH" yarn bootstrap ios "${args[@]}" | cat
89+
RN_DEP_PATH=packages/react-native/third-party/ReactNativeDependencies${{ inputs.flavor }}.framework.dSYM.tar.gz
90+
RCT_USE_LOCAL_RN_DEP="$RN_DEP_PATH" HERMES_ENGINE_TARBALL_PATH="$HERMES_PATH" yarn bootstrap ios "${args[@]}" | cat
8291
fi
8392
- name: Build HelloWorld project
8493
shell: bash

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

+10
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ runs:
9292
else
9393
echo 'No Hermes tarball found.'
9494
fi
95+
- name: Download ReactNativeDependencies
96+
uses: actions/download-artifact@v4
97+
with:
98+
name: ReactNativeDependencies${{ inputs.flavor }}.framework.dSYM.tar.gz
99+
path: packages/react-native/third-party
100+
- name: Print third-party folder
101+
shell: bash
102+
run: ls -lR packages/react-native/third-party
95103
- name: Setup xcode build cache
96104
uses: ./.github/actions/setup-xcode-build-cache
97105
with:
@@ -118,6 +126,8 @@ runs:
118126
export RCT_NEW_ARCH_ENABLED=0
119127
fi
120128
129+
export RCT_USE_LOCAL_RN_DEP=packages/react-native/third-party/ReactNativeDependencies${{ inputs.flavor }}.framework.dSYM.tar.gz
130+
121131
cd packages/rn-tester
122132
123133
bundle install

0 commit comments

Comments
 (0)