Skip to content

Commit ccf9c0d

Browse files
jchen351ashrit-ms
authored andcommitted
Add a temporary path to RN 0.69.3 to update the boost url (#23281)
### Description Add a temporary path to RN 0.69.3 to update the boost url ### Motivation and Context Fix the React-native CI until we update the RN to 0.70.15 or 0.73.3+ versions
1 parent 90f82fc commit ccf9c0d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

tools/ci_build/github/azure-pipelines/templates/react-native-ci.yml

+24
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,30 @@ stages:
198198
workingDirectory: '$(Build.SourcesDirectory)/js/react_native/e2e'
199199
displayName: Bootstrap Android and iOS e2e tests
200200
201+
# TODO: remove this once we upgrade the RN to post 0.70.15 or 0.73.3+ versions this is just a temporary workaround
202+
- script: |
203+
if [[ "$OSTYPE" == "darwin"* ]]; then
204+
sed -i .bak "/boostorg.jfrog.io/c\\
205+
spec.source = { :http => 'https://archives.boost.io/release/1.76.0/source/boost_1_76_0.tar.bz2', " boost.podspec
206+
else
207+
sed -i .bak "/boostorg.jfrog.io/c\spec.source = { :http => 'https://archives.boost.io/release/1.76.0/source/boost_1_76_0.tar.bz2', " boost.podspec
208+
fi
209+
rm -f boost.podspec.bak
210+
workingDirectory: '$(Build.SourcesDirectory)/js/react_native/node_modules/react-native/third-party-podspecs'
211+
displayName: Path the boost 1.76.0 source URL in boost.podspec js/react_native/node_modules/react-native/third-party-podspecs/boost.podspec
212+
213+
# TODO: remove this once we upgrade the RN to post 0.70.15 or 0.73.3+ versions this is just a temporary workaround
214+
- script: |
215+
if [[ "$OSTYPE" == "darwin"* ]]; then
216+
sed -i .bak "/boostorg.jfrog.io/c\\
217+
spec.source = { :http => 'https://archives.boost.io/release/1.76.0/source/boost_1_76_0.tar.bz2', " boost.podspec
218+
else
219+
sed -i .bak "/boostorg.jfrog.io/c\spec.source = { :http => 'https://archives.boost.io/release/1.76.0/source/boost_1_76_0.tar.bz2', " boost.podspec
220+
fi
221+
rm -f boost.podspec.bak
222+
workingDirectory: '$(Build.SourcesDirectory)/js/react_native/e2e/node_modules/react-native/third-party-podspecs'
223+
displayName: Path the boost 1.76.0 source URL in boost.podspec in js/react_native/e2e/node_modules/react-native/third-party-podspecs/boost.podspec
224+
201225
- script: |
202226
ORT_C_LOCAL_POD_PATH=$(Build.BinariesDirectory)/ios-full-pod/onnxruntime-c \
203227
pod install

0 commit comments

Comments
 (0)