Skip to content

Commit 173e8a8

Browse files
authored
1 parent 0464eaf commit 173e8a8

File tree

275 files changed

+25172
-22400
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

275 files changed

+25172
-22400
lines changed

.github/workflows/angular-demos.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

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

3030
steps:
3131
- uses: actions/checkout@v3

.github/workflows/angular.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
strategy:
3131
matrix:
32-
node-version: [14.x, 16.x, 18.x, 20.x]
32+
node-version: [16.x, 18.x, 20.x]
3333

3434
steps:
3535
- uses: actions/checkout@v3

.github/workflows/dotnet-demos.yml

+3
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,13 @@ jobs:
2929
include:
3030
- os: ubuntu-latest
3131
platform: linux
32+
nuget-path: ~/.nuget/NuGet/local-nuget
3233
- os: windows-latest
3334
platform: windows
35+
nuget-path: ~/AppData/Roaming/NuGet/local-nuget
3436
- os: macos-latest
3537
platform: mac
38+
nuget-path: ~/.nuget/NuGet/local-nuget
3639

3740
steps:
3841
- uses: actions/checkout@v3

.github/workflows/dotnet.yml

+6
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ jobs:
5353
- dotnet-version: 6.0.x
5454
binding-framework: net6.0
5555
test-framework: net6.0
56+
- os: ubuntu-latest
57+
nuget-path: ~/.nuget/NuGet/local-nuget
58+
- os: macos-latest
59+
nuget-path: ~/.nuget/NuGet/local-nuget
60+
- os: windows-latest
61+
nuget-path: ~/AppData/Roaming/NuGet/local-nuget
5662

5763
steps:
5864
- name: Checkout repository and submodules

.github/workflows/go-demos.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,19 @@ jobs:
2525

2626
strategy:
2727
matrix:
28-
go: [ '1.16', '1.17', '1.18' ]
28+
go: [ '1.16', '1.17', '1.18', '1.19', '1.20', 'stable' ]
2929

3030
steps:
3131
- uses: actions/checkout@v3
3232
with:
3333
submodules: recursive
3434

35+
- name: Set up Mingw
36+
uses: egor-tensin/setup-mingw@v2
37+
if: ${{ (matrix.os == 'windows-latest') && (matrix.go != 'stable') && (matrix.go < 1.20) }}
38+
with:
39+
version: 11.2.0
40+
3541
- name: Setup go
3642
uses: actions/setup-go@v4
3743
with:
@@ -46,13 +52,19 @@ jobs:
4652

4753
strategy:
4854
matrix:
49-
go: [ '1.16', '1.17', '1.18' ]
55+
go: [ '1.16', '1.17', '1.18', '1.19', '1.20', 'stable' ]
5056

5157
steps:
5258
- uses: actions/checkout@v3
5359
with:
5460
submodules: recursive
5561

62+
- name: Set up Mingw
63+
uses: egor-tensin/setup-mingw@v2
64+
if: ${{ (matrix.os == 'windows-latest') && (matrix.go != 'stable') && (matrix.go < 1.20) }}
65+
with:
66+
version: 11.2.0
67+
5668
- name: Setup go
5769
uses: actions/setup-go@v4
5870
with:

.github/workflows/go.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,19 @@ jobs:
3535
strategy:
3636
matrix:
3737
os: [ubuntu-latest, windows-latest, macos-latest]
38-
go: [ '1.16', '1.17', '1.18' ]
38+
go: [ '1.16', '1.17', '1.18', '1.19', '1.20', 'stable' ]
3939

4040
steps:
4141
- uses: actions/checkout@v3
4242
with:
4343
submodules: recursive
4444

45+
- name: Set up Mingw
46+
uses: egor-tensin/setup-mingw@v2
47+
if: ${{ (matrix.os == 'windows-latest') && (matrix.go != 'stable') && (matrix.go < 1.20) }}
48+
with:
49+
version: 11.2.0
50+
4551
- name: Setup go
4652
uses: actions/setup-go@v4
4753
with:

.github/workflows/nodejs-codestyle.yml

-3
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ jobs:
2929
with:
3030
node-version: lts/*
3131

32-
- name: Pre-build dependencies
33-
run: npm install yarn
34-
3532
- name: Run Binding Linter
3633
run: yarn && yarn lint
3734
working-directory: sdk/nodejs

.github/workflows/nodejs-demos.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
strategy:
2828
matrix:
2929
os: [ubuntu-latest, windows-latest, macos-latest]
30-
node-version: [14.x, 16.x, 18.x, 20.x]
30+
node-version: [16.x, 18.x, 20.x]
3131
include:
3232
- os: ubuntu-latest
3333
platform: linux
@@ -46,9 +46,6 @@ jobs:
4646
with:
4747
node-version: ${{ matrix.node-version }}
4848

49-
- name: Pre-build dependencies
50-
run: npm install yarn
51-
5249
- name: Install dependencies
5350
run: yarn install
5451

@@ -63,6 +60,7 @@ jobs:
6360
runs-on: ${{ matrix.machine }}
6461

6562
strategy:
63+
fail-fast: false
6664
matrix:
6765
machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson, beaglebone]
6866
include:

.github/workflows/nodejs.yml

+3-24
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
strategy:
3535
matrix:
3636
os: [ubuntu-latest, macos-latest, windows-latest]
37-
node-version: [14.x, 16.x, 18.x, 20.x]
37+
node-version: [16.x, 18.x, 20.x]
3838

3939
steps:
4040
- uses: actions/checkout@v3
@@ -46,27 +46,17 @@ jobs:
4646
with:
4747
node-version: ${{ matrix.node-version }}
4848

49-
- name: Local Porcupine dependency
50-
run: yarn && yarn build
51-
working-directory: resources/porcupine/binding/nodejs
52-
53-
- name: Local Rhino dependency
54-
run: yarn && yarn build
55-
working-directory: resources/rhino/binding/nodejs
56-
57-
- name: Pre-build dependencies
58-
run: npm install yarn
59-
6049
- name: Install dependencies
6150
run: yarn install
6251

6352
- name: Test
64-
run: yarn test --access_key=${{secrets.PV_VALID_ACCESS_KEY}}
53+
run: yarn test --access_key=${{secrets.PV_VALID_ACCESS_KEY}}
6554

6655
build-self-hosted:
6756
runs-on: ${{ matrix.machine }}
6857

6958
strategy:
59+
fail-fast: false
7060
matrix:
7161
machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson, beaglebone]
7262

@@ -75,17 +65,6 @@ jobs:
7565
with:
7666
submodules: recursive
7767

78-
- name: Local Porcupine dependency
79-
run: yarn && yarn build
80-
working-directory: resources/porcupine/binding/nodejs
81-
82-
- name: Local Rhino dependency
83-
run: yarn && yarn build
84-
working-directory: resources/rhino/binding/nodejs
85-
86-
- name: Pre-build dependencies
87-
run: npm install --global yarn
88-
8968
- name: Install dependencies
9069
run: yarn install
9170

.github/workflows/python-demos.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
matrix:
2828
os: [ubuntu-latest, windows-latest, macos-latest]
29-
python-version: ['3.7', '3.8', '3.9', '3.10']
29+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
3030
include:
3131
- os: ubuntu-latest
3232
platform: linux
@@ -46,7 +46,9 @@ jobs:
4646
python-version: ${{ matrix.python-version }}
4747

4848
- name: Pre-build dependencies
49-
run: python -m pip install --upgrade pip
49+
run: |
50+
python -m pip install --upgrade pip
51+
pip install wheel
5052
5153
- name: Install dependencies
5254
run: pip install -r requirements.txt
@@ -85,6 +87,11 @@ jobs:
8587
with:
8688
submodules: recursive
8789

90+
- name: Pre-build dependencies
91+
run: |
92+
python3 -m pip install --upgrade pip
93+
pip3 install wheel
94+
8895
- name: Install dependencies
8996
run: pip3 install -r requirements.txt
9097

.github/workflows/python.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
strategy:
3535
matrix:
3636
os: [ubuntu-latest, windows-latest, macos-latest]
37-
python-version: ['3.7', '3.8', '3.9', '3.10']
37+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
3838

3939
steps:
4040
- uses: actions/checkout@v3

.github/workflows/react-demos.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

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

3030
steps:
3131
- uses: actions/checkout@v3

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

+88-8
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,28 @@ jobs:
4141
with:
4242
node-version: ${{ matrix.node-version }}
4343

44-
- name: Pre-build dependencies
45-
run: npm install yarn
44+
# ************ REMOVE AFTER RELEASE *****************
45+
- name: Build and package ppn
46+
working-directory: resources/porcupine/binding/react-native
47+
run: yarn && yarn pkg
48+
49+
- name: Add to demo
50+
run: yarn add ../../resources/porcupine/binding/react-native/pkg/picovoice-porcupine-react-native-3.0.0.tgz
51+
52+
- name: Build and package rhn
53+
working-directory: resources/rhino/binding/react-native
54+
run: yarn && yarn pkg
55+
56+
- name: Add to demo
57+
run: yarn add ../../resources/rhino/binding/react-native/pkg/picovoice-rhino-react-native-3.0.0.tgz
58+
59+
- name: Build and package pv
60+
working-directory: sdk/react-native
61+
run: yarn && yarn pkg
62+
63+
- name: Add to demo
64+
run: yarn add ../../sdk/react-native/pkg/picovoice-picovoice-react-native-3.0.0.tgz
65+
# ***************************************************
4666

4767
- name: Install dependencies
4868
run: yarn android-install
@@ -71,8 +91,28 @@ jobs:
7191
with:
7292
node-version: ${{ matrix.node-version }}
7393

74-
- name: Pre-build dependencies
75-
run: npm install yarn
94+
# ************ REMOVE AFTER RELEASE *****************
95+
- name: Build and package ppn
96+
working-directory: resources/porcupine/binding/react-native
97+
run: yarn && yarn pkg
98+
99+
- name: Add to demo
100+
run: yarn add ../../resources/porcupine/binding/react-native/pkg/picovoice-porcupine-react-native-3.0.0.tgz
101+
102+
- name: Build and package rhn
103+
working-directory: resources/rhino/binding/react-native
104+
run: yarn && yarn pkg
105+
106+
- name: Add to demo
107+
run: yarn add ../../resources/rhino/binding/react-native/pkg/picovoice-rhino-react-native-3.0.0.tgz
108+
109+
- name: Build and package pv
110+
working-directory: sdk/react-native
111+
run: yarn && yarn pkg
112+
113+
- name: Add to demo
114+
run: yarn add ../../sdk/react-native/pkg/picovoice-picovoice-react-native-3.0.0.tgz
115+
# ***************************************************
76116

77117
- name: Install dependencies
78118
run: yarn ios-install
@@ -110,8 +150,28 @@ jobs:
110150
with:
111151
node-version: ${{ matrix.node-version }}
112152

113-
- name: Pre-build dependencies
114-
run: npm install yarn --legacy-peer-deps
153+
# ************ REMOVE AFTER RELEASE *****************
154+
- name: Build and package ppn
155+
working-directory: resources/porcupine/binding/react-native
156+
run: yarn && yarn pkg
157+
158+
- name: Add to demo
159+
run: yarn add ../../resources/porcupine/binding/react-native/pkg/picovoice-porcupine-react-native-3.0.0.tgz
160+
161+
- name: Build and package rhn
162+
working-directory: resources/rhino/binding/react-native
163+
run: yarn && yarn pkg
164+
165+
- name: Add to demo
166+
run: yarn add ../../resources/rhino/binding/react-native/pkg/picovoice-rhino-react-native-3.0.0.tgz
167+
168+
- name: Build and package pv
169+
working-directory: sdk/react-native
170+
run: yarn && yarn pkg
171+
172+
- name: Add to demo
173+
run: yarn add ../../sdk/react-native/pkg/picovoice-picovoice-react-native-3.0.0.tgz
174+
# ***************************************************
115175

116176
- name: Install dependencies
117177
run: yarn android-install
@@ -143,8 +203,28 @@ jobs:
143203
with:
144204
node-version: ${{ matrix.node-version }}
145205

146-
- name: Pre-build dependencies
147-
run: npm install yarn --legacy-peer-deps
206+
# ************ REMOVE AFTER RELEASE *****************
207+
- name: Build and package ppn
208+
working-directory: resources/porcupine/binding/react-native
209+
run: yarn && yarn pkg
210+
211+
- name: Add to demo
212+
run: yarn add ../../resources/porcupine/binding/react-native/pkg/picovoice-porcupine-react-native-3.0.0.tgz
213+
214+
- name: Build and package rhn
215+
working-directory: resources/rhino/binding/react-native
216+
run: yarn && yarn pkg
217+
218+
- name: Add to demo
219+
run: yarn add ../../resources/rhino/binding/react-native/pkg/picovoice-rhino-react-native-3.0.0.tgz
220+
221+
- name: Build and package pv
222+
working-directory: sdk/react-native
223+
run: yarn && yarn pkg
224+
225+
- name: Add to demo
226+
run: yarn add ../../sdk/react-native/pkg/picovoice-picovoice-react-native-3.0.0.tgz
227+
# ***************************************************
148228

149229
- name: Install dependencies
150230
run: yarn ios-install

.github/workflows/react.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
strategy:
3131
matrix:
32-
node-version: [14.x, 16.x, 18.x, 20.x]
32+
node-version: [16.x, 18.x, 20.x]
3333

3434
steps:
3535
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)