Skip to content

Commit 6b9724c

Browse files
committed
update
1 parent c18ea79 commit 6b9724c

File tree

1 file changed

+36
-9
lines changed

1 file changed

+36
-9
lines changed

.github/workflows/react_native.yml

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
set -e -x
5353
NDK_HOME=$(realpath $ANDROID_NDK_HOME)
5454
mkdir -p ${{ runner.temp }}/.build_settings
55+
mkdir -p ${{ runner.temp }}/.artifacts
5556
cp ${{ github.workspace }}/tools/ci_build/github/js/react_native_e2e_full_aar_build_settings.json ${{ runner.temp }}/.build_settings/build_settings.json
5657
5758
docker run --rm \
@@ -207,9 +208,17 @@ jobs:
207208
- name: Install Python requirements
208209
run: pip install -r tools/ci_build/github/apple/ios_packaging/requirements.txt
209210

211+
- uses: microsoft/onnxruntime-github-actions/[email protected]
212+
with:
213+
vcpkg-version: '2025.06.13'
214+
vcpkg-hash: 735923258c5187966698f98ce0f1393b8adc6f84d44fd8829dda7db52828639331764ecf41f50c8e881e497b569f463dbd02dcb027ee9d9ede0711102de256cc
215+
cmake-version: '3.31.8'
216+
cmake-hash: 99cc9c63ae49f21253efb5921de2ba84ce136018abf08632c92c060ba91d552e0f6acc214e9ba8123dee0cf6d1cf089ca389e321879fd9d719a60d975bcffcc8
217+
add-cmake-to-path: 'true'
218+
disable-terrapin: 'true'
219+
210220
- name: Build iOS package and assemble pods
211221
run: |
212-
set -e -x
213222
python ${{ github.workspace }}/tools/ci_build/github/apple/build_and_assemble_apple_pods.py \
214223
--build-dir "${{ runner.temp }}/ios_framework_full" \
215224
--staging-dir "${{ runner.temp }}/ios_pod" \
@@ -243,32 +252,40 @@ jobs:
243252
uses: actions/setup-node@v5
244253
with:
245254
node-version: '22.x'
246-
255+
256+
- uses: microsoft/onnxruntime-github-actions/[email protected]
257+
with:
258+
vcpkg-version: '2025.06.13'
259+
vcpkg-hash: 735923258c5187966698f98ce0f1393b8adc6f84d44fd8829dda7db52828639331764ecf41f50c8e881e497b569f463dbd02dcb027ee9d9ede0711102de256cc
260+
cmake-version: '3.31.8'
261+
cmake-hash: 99cc9c63ae49f21253efb5921de2ba84ce136018abf08632c92c060ba91d552e0f6acc214e9ba8123dee0cf6d1cf089ca389e321879fd9d719a60d975bcffcc8
262+
add-cmake-to-path: 'true'
263+
disable-terrapin: 'true'
264+
247265
- name: Install dependencies and bootstrap
248266
run: |
249267
npm ci
250268
working-directory: ${{ github.workspace }}/js
251269
- run: npm ci
252270
working-directory: ${{ github.workspace }}/js/common
253271
- run: |
272+
set -e -x
254273
npm ci
255274
npm run bootstrap-no-pods
256275
working-directory: ${{ github.workspace }}/js/react_native
257276
258277
- name: Pod install
259278
run: |
260-
ORT_C_LOCAL_POD_PATH=${{ runner.temp }}/ios_pod/onnxruntime-c \
261-
pod install
279+
ORT_C_LOCAL_POD_PATH=${{ runner.temp }}/ios_pod/onnxruntime-c pod install
262280
working-directory: ${{ github.workspace }}/js/react_native/ios
263281

264282
- name: Run React Native iOS Instrumented Tests
265283
run: |
266-
set -o pipefail && xcodebuild test \
284+
xcodebuild test \
267285
-workspace OnnxruntimeModule.xcworkspace \
268286
-scheme OnnxruntimeModuleTest \
269287
-sdk iphonesimulator \
270-
-destination 'platform=iOS Simulator,name=iPhone 15,OS=17.4' \
271-
| xcpretty --report junit --output build/reports/test-results.xml
288+
-destination 'platform=iOS Simulator,name=iPhone 15,OS=17.4'
272289
working-directory: ${{ github.workspace }}/js/react_native/ios
273290

274291
react_native_ci_ios_e2e_tests:
@@ -294,8 +311,18 @@ jobs:
294311
with:
295312
node-version: '22.x'
296313

314+
- uses: microsoft/onnxruntime-github-actions/[email protected]
315+
with:
316+
vcpkg-version: '2025.06.13'
317+
vcpkg-hash: 735923258c5187966698f98ce0f1393b8adc6f84d44fd8829dda7db52828639331764ecf41f50c8e881e497b569f463dbd02dcb027ee9d9ede0711102de256cc
318+
cmake-version: '3.31.8'
319+
cmake-hash: 99cc9c63ae49f21253efb5921de2ba84ce136018abf08632c92c060ba91d552e0f6acc214e9ba8123dee0cf6d1cf089ca389e321879fd9d719a60d975bcffcc8
320+
add-cmake-to-path: 'true'
321+
disable-terrapin: 'true'
322+
297323
- name: Install dependencies and bootstrap
298324
run: |
325+
set -e -x
299326
npm install -g detox-cli
300327
brew tap wix/brew
301328
brew install applesimutils
@@ -304,14 +331,14 @@ jobs:
304331
- run: npm ci
305332
working-directory: ${{ github.workspace }}/js/common
306333
- run: |
334+
set -e -x
307335
npm ci
308336
npm run bootstrap-no-pods
309337
working-directory: ${{ github.workspace }}/js/react_native
310338
311339
- name: Pod install for e2e tests
312340
run: |
313-
ORT_C_LOCAL_POD_PATH=${{ runner.temp }}/ios_pod/onnxruntime-c \
314-
pod install
341+
ORT_C_LOCAL_POD_PATH=${{ runner.temp }}/ios_pod/onnxruntime-c pod install
315342
working-directory: ${{ github.workspace }}/js/react_native/e2e/ios
316343

317344
- name: Build and Run Detox iOS e2e Tests

0 commit comments

Comments
 (0)