Skip to content

Commit 37dfe74

Browse files
jchen351adrianlizarraga
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 9b3df90 commit 37dfe74

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

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

0 commit comments

Comments
 (0)