Skip to content

Commit 8097a17

Browse files
committed
actions
1 parent b5c3dbf commit 8097a17

File tree

3 files changed

+57
-7
lines changed

3 files changed

+57
-7
lines changed

.github/workflows/react-native-codestyle.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,24 @@ jobs:
3535
run: yarn && yarn lint
3636
working-directory: binding/react-native
3737

38+
# ************** REMOVE AFTER RELEASE ********************
39+
- name: Install React Native Binding Dependencies
40+
run: yarn install
41+
working-directory: binding/react-native
42+
43+
- name: Build Local tarball
44+
run: yarn pkg
45+
working-directory: binding/react-native
46+
47+
- name: Remove old package
48+
run: yarn remove @picovoice/rhino-react-native
49+
working-directory: demo/react-native/RhinoDemo
50+
51+
- name: Add new local package
52+
run: yarn add ../../../binding/react-native/pkg/picovoice-rhino-react-native-3.0.5.tgz
53+
working-directory: demo/react-native/RhinoDemo
54+
# ************** REMOVE AFTER RELEASE ********************
55+
3856
- name: Run Demo Linter
3957
run: yarn && yarn lint
40-
working-directory: demo/react-native
58+
working-directory: demo/react-native/RhinoDemo

.github/workflows/react-native-demos.yml

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ on:
1717

1818
defaults:
1919
run:
20-
working-directory: demo/react-native
20+
working-directory: demo/react-native/RhinoDemo
2121

2222
jobs:
2323
build-android:
2424
runs-on: ubuntu-latest
2525

2626
strategy:
2727
matrix:
28-
node-version: [16.x, 18.x, 20.x]
28+
node-version: [20.x, 22.x, 24.x]
2929

3030
steps:
3131
- uses: actions/checkout@v3
@@ -35,6 +35,22 @@ jobs:
3535
with:
3636
node-version: ${{ matrix.node-version }}
3737

38+
# ************** REMOVE AFTER RELEASE ********************
39+
- name: Install React Native Binding Dependencies
40+
run: yarn install
41+
working-directory: binding/react-native
42+
43+
- name: Build Local tarball
44+
run: yarn pkg
45+
working-directory: binding/react-native
46+
47+
- name: Remove old package
48+
run: yarn remove @picovoice/rhino-react-native
49+
50+
- name: Add new local package
51+
run: yarn add ../../../binding/react-native/pkg/picovoice-rhino-react-native-3.0.5.tgz
52+
# ************** REMOVE AFTER RELEASE ********************
53+
3854
- name: Install dependencies
3955
run: yarn android-install
4056

@@ -43,14 +59,14 @@ jobs:
4359

4460
- name: Build
4561
run: ./gradlew assembleDebug
46-
working-directory: demo/react-native/android
62+
working-directory: demo/react-native/RhinoDemo/android
4763

4864
build-ios:
4965
runs-on: macos-latest
5066

5167
strategy:
5268
matrix:
53-
node-version: [16.x, 18.x, 20.x]
69+
node-version: [20.x, 22.x, 24.x]
5470

5571
steps:
5672
- uses: actions/checkout@v3
@@ -60,6 +76,22 @@ jobs:
6076
with:
6177
node-version: ${{ matrix.node-version }}
6278

79+
# ************** REMOVE AFTER RELEASE ********************
80+
- name: Install React Native Binding Dependencies
81+
run: yarn install
82+
working-directory: binding/react-native
83+
84+
- name: Build Local tarball
85+
run: yarn pkg
86+
working-directory: binding/react-native
87+
88+
- name: Remove old package
89+
run: yarn remove @picovoice/rhino-react-native
90+
91+
- name: Add new local package
92+
run: yarn add ../../../binding/react-native/pkg/picovoice-rhino-react-native-3.0.5.tgz
93+
# ************** REMOVE AFTER RELEASE ********************
94+
6395
- name: Install dependencies
6496
run: yarn ios-install
6597

@@ -74,4 +106,4 @@ jobs:
74106
-scheme RhinoDemo
75107
-derivedDataPath ddp
76108
CODE_SIGNING_ALLOWED=NO
77-
working-directory: demo/react-native/ios
109+
working-directory: demo/react-native/RhinoDemo/ios

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ Once the demo app has started, press the start button and utter a command to sta
270270

271271
To run the React Native Rhino demo app you will first need to set up your React Native environment. For this,
272272
please refer to [React Native's documentation](https://reactnative.dev/docs/environment-setup). Once your environment has
273-
been set up, navigate to [demo/react-native](./demo/react-native) to run the following commands:
273+
been set up, navigate to [demo/react-native/RhinoDemo](./demo/react-native/RhinoDemo) to run the following commands:
274274

275275
For Android:
276276

0 commit comments

Comments
 (0)