Skip to content

Commit f0c6065

Browse files
authored
1 parent 88154e0 commit f0c6065

File tree

342 files changed

+32637
-14597
lines changed

Some content is hidden

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

342 files changed

+32637
-14597
lines changed

.github/workflows/android-appcenter.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ on:
55
push:
66
branches: [ master ]
77
paths:
8-
- 'demo/android/Activity/picovoice-activity-demo-app/build.gradle'
98
- '.github/workflows/android-appcenter.yml'
9+
- 'demo/android/Activity/**'
10+
- 'resources/.test/**'
11+
- 'resources/audio_samples/**'
1012
pull_request:
11-
branches: [ master ]
13+
branches: [ master, 'v[0-9]+.[0-9]+' ]
1214
paths:
13-
- 'demo/android/Activity/picovoice-activity-demo-app/build.gradle'
1415
- '.github/workflows/android-appcenter.yml'
16+
- 'demo/android/Activity/**'
17+
- 'resources/.test/**'
18+
- 'resources/audio_samples/**'
1519

1620
defaults:
1721
run:
@@ -24,12 +28,12 @@ jobs:
2428

2529
steps:
2630
- name: Checkout repository and submodules
27-
uses: actions/checkout@v2
31+
uses: actions/checkout@v3
2832
with:
2933
submodules: recursive
3034

3135
- name: Setup Node.js environment
32-
uses: actions/setup-node@v2.4.0
36+
uses: actions/setup-node@v3
3337

3438
- name: Install AppCenter CLI
3539
run: npm install -g appcenter-cli
+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Angular Codestyle
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ master ]
7+
paths:
8+
- '**/angular/*.js'
9+
- '**/angular/*.ts'
10+
- '.github/workflows/angular-codestyle.yml'
11+
pull_request:
12+
branches: [ master, 'v[0-9]+.[0-9]+' ]
13+
paths:
14+
- '**/angular/*.js'
15+
- '**/angular/*.ts'
16+
- '.github/workflows/angular-codestyle.yml'
17+
18+
jobs:
19+
check-angular-codestyle:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
with:
25+
submodules: recursive
26+
27+
- name: Set up Node.js lts/*
28+
uses: actions/setup-node@v3
29+
with:
30+
node-version: lts/*
31+
32+
- name: Pre-build dependencies
33+
run: npm install yarn
34+
35+
- name: Run SDK Linter
36+
run: yarn && yarn lint
37+
working-directory: sdk/angular
38+
39+
- name: Run Demo Linter
40+
run: yarn && yarn lint
41+
working-directory: demo/angular

.github/workflows/angular-demos.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- '!demo/angular/README.md'
1010
- '.github/workflows/angular-demos.yml'
1111
pull_request:
12-
branches: [ master ]
12+
branches: [ master, 'v[0-9]+.[0-9]+' ]
1313
paths:
1414
- 'demo/angular/**'
1515
- '!demo/angular/README.md'
@@ -28,12 +28,12 @@ jobs:
2828
node-version: [14.x, 16.x, 18.x]
2929

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

3535
- name: Use Node.js ${{ matrix.node-version }}
36-
uses: actions/setup-node@v2
36+
uses: actions/setup-node@v3
3737
with:
3838
node-version: ${{ matrix.node-version }}
3939

.github/workflows/angular.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
- 'resources/rhino'
1212
- '.github/workflows/angular.yml'
1313
pull_request:
14-
branches: [ master ]
14+
branches: [ master, 'v[0-9]+.[0-9]+' ]
1515
paths:
1616
- 'sdk/angular/**'
1717
- '!sdk/angular/README.md'
@@ -32,12 +32,12 @@ jobs:
3232
node-version: [14.x, 16.x, 18.x]
3333

3434
steps:
35-
- uses: actions/checkout@v2
35+
- uses: actions/checkout@v3
3636
with:
3737
submodules: recursive
3838

3939
- name: Use Node.js ${{ matrix.node-version }}
40-
uses: actions/setup-node@v2
40+
uses: actions/setup-node@v3
4141
with:
4242
node-version: ${{ matrix.node-version }}
4343

@@ -52,7 +52,7 @@ jobs:
5252

5353
- name: Lint
5454
run: yarn lint
55-
55+
5656
- name: Setup test
5757
run: yarn setup-test
5858

.github/workflows/c-demos.yml

+14-14
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,27 @@ on:
55
push:
66
branches: [ master ]
77
paths:
8-
- '.github/workflows/c-demos.yml'
9-
- 'sdk/c/**'
8+
- '!demo/c/README.md'
109
- '!sdk/c/README.md'
10+
- '.github/workflows/c-demos.yml'
1111
- 'demo/c/**'
12-
- '!demo/c/README.md'
12+
- 'resources/.test/**'
1313
- 'resources/audio_samples/**'
1414
- 'resources/porcupine'
1515
- 'resources/rhino'
16-
- 'resources/test/**'
16+
- 'sdk/c/**'
1717
pull_request:
18-
branches: [ master ]
18+
branches: [ master, 'v[0-9]+.[0-9]+' ]
1919
paths:
20-
- '.github/workflows/c-demos.yml'
21-
- 'sdk/c/**'
20+
- '!demo/c/README.md'
2221
- '!sdk/c/README.md'
22+
- '.github/workflows/c-demos.yml'
2323
- 'demo/c/**'
24-
- '!demo/c/README.md'
24+
- 'resources/.test/**'
2525
- 'resources/audio_samples/**'
2626
- 'resources/porcupine'
2727
- 'resources/rhino'
28-
- 'resources/test/**'
28+
- 'sdk/c/**'
2929

3030
defaults:
3131
run:
@@ -40,7 +40,7 @@ jobs:
4040
os: [ubuntu-latest, windows-latest, macos-latest]
4141

4242
steps:
43-
- uses: actions/checkout@v2
43+
- uses: actions/checkout@v3
4444
with:
4545
submodules: recursive
4646

@@ -58,7 +58,7 @@ jobs:
5858
machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson, beaglebone]
5959

6060
steps:
61-
- uses: actions/checkout@v2
61+
- uses: actions/checkout@v3
6262
with:
6363
submodules: recursive
6464

@@ -86,12 +86,12 @@ jobs:
8686
arch: x86_64
8787

8888
steps:
89-
- uses: actions/checkout@v2
89+
- uses: actions/checkout@v3
9090
with:
9191
submodules: recursive
9292

9393
- name: Set up Python '3.10'
94-
uses: actions/setup-python@v2
94+
uses: actions/setup-python@v4
9595
with:
9696
python-version: '3.10'
9797

@@ -137,7 +137,7 @@ jobs:
137137
arch: ''
138138

139139
steps:
140-
- uses: actions/checkout@v2
140+
- uses: actions/checkout@v3
141141
with:
142142
submodules: recursive
143143

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: .NET Codestyle
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ master ]
7+
paths:
8+
- '**/dotnet/*.cs'
9+
- '.github/workflows/dotnet-codestyle.yml'
10+
pull_request:
11+
branches: [ master, 'v[0-9]+.[0-9]+' ]
12+
paths:
13+
- '**/dotnet/*.cs'
14+
- '.github/workflows/dotnet-codestyle.yml'
15+
16+
jobs:
17+
check-dotnet-codestyle:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
23+
- name: Setup .NET 6.0
24+
uses: actions/setup-dotnet@v3
25+
with:
26+
dotnet-version: 6.0.x
27+
28+
- name: Run Binding Codestyle
29+
run: dotnet format --verify-no-changes --no-restore
30+
working-directory: sdk/dotnet
31+
32+
- name: Run Demo Codestyle
33+
run: dotnet format --verify-no-changes --no-restore
34+
working-directory: demo/dotnet

.github/workflows/dotnet-demos.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- '!demo/dotnet/README.md'
1010
- '.github/workflows/dotnet-demos.yml'
1111
pull_request:
12-
branches: [ master ]
12+
branches: [ master, 'v[0-9]+.[0-9]+' ]
1313
paths:
1414
- 'demo/dotnet/**'
1515
- '!demo/dotnet/README.md'
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525

2626
steps:
27-
- uses: actions/checkout@v2
27+
- uses: actions/checkout@v3
2828
with:
2929
submodules: recursive
3030

@@ -40,7 +40,7 @@ jobs:
4040
runs-on: ubuntu-latest
4141

4242
steps:
43-
- uses: actions/checkout@v2
43+
- uses: actions/checkout@v3
4444
with:
4545
submodules: recursive
4646

.github/workflows/dotnet.yml

+31-20
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ on:
99
- 'sdk/dotnet/**'
1010
- '!sdk/dotnet/README.md'
1111
- 'resources/audio_samples/**'
12+
- 'resources/.test/**'
1213
- 'resources/porcupine'
1314
- 'resources/rhino'
14-
- 'resources/test/**'
1515
pull_request:
16-
branches: [ master ]
16+
branches: [ master, 'v[0-9]+.[0-9]+' ]
1717
paths:
1818
- '.github/workflows/dotnet.yml'
1919
- 'sdk/dotnet/**'
2020
- '!sdk/dotnet/README.md'
21+
- 'resources/.test/**'
2122
- 'resources/audio_samples/**'
2223
- 'resources/porcupine'
2324
- 'resources/rhino'
24-
- 'resources/test/**'
2525

2626
defaults:
2727
run:
@@ -36,26 +36,40 @@ jobs:
3636
strategy:
3737
matrix:
3838
os: [ubuntu-latest, macos-latest, windows-latest]
39+
dotnet-version: [2.0.x, 3.0.x, 3.1.x, 5.0.x, 6.0.x]
40+
include:
41+
- dotnet-version: 2.0.x
42+
binding-framework: netstandard2.0
43+
test-framework: netcoreapp2.0
44+
- dotnet-version: 3.0.x
45+
binding-framework: netcoreapp3.0
46+
test-framework: netcoreapp3.0
47+
- dotnet-version: 3.1.x
48+
binding-framework: netcoreapp3.0
49+
test-framework: netcoreapp3.1
50+
- dotnet-version: 5.0.x
51+
binding-framework: netcoreapp3.0
52+
test-framework: net5.0
53+
- dotnet-version: 6.0.x
54+
binding-framework: net6.0
55+
test-framework: net6.0
3956

4057
steps:
4158
- name: Checkout repository and submodules
42-
uses: actions/checkout@v2
59+
uses: actions/checkout@v3
4360
with:
4461
submodules: recursive
4562

46-
- name: Setup .NET 6.0
47-
uses: actions/setup-dotnet@v1
63+
- name: Setup .NET
64+
uses: actions/setup-dotnet@v3
4865
with:
49-
dotnet-version: 6.0.x
50-
51-
- name: Restore dependencies
52-
run: dotnet restore
66+
dotnet-version: ${{ matrix.dotnet-version }}
5367

54-
- name: Build
55-
run: dotnet build --no-restore
68+
- name: Build binding
69+
run: dotnet build Picovoice/Picovoice.csproj --framework ${{ matrix.binding-framework }}
5670

5771
- name: Test
58-
run: dotnet test
72+
run: dotnet test --framework ${{ matrix.test-framework }} -v d
5973

6074
build-self-hosted:
6175
runs-on: ${{ matrix.machine }}
@@ -68,15 +82,12 @@ jobs:
6882

6983
steps:
7084
- name: Checkout repository and submodules
71-
uses: actions/checkout@v2
85+
uses: actions/checkout@v3
7286
with:
7387
submodules: recursive
7488

75-
- name: Restore dependencies
76-
run: dotnet restore
77-
78-
- name: Build
79-
run: dotnet build --no-restore
89+
- name: Build binding
90+
run: dotnet build Picovoice/Picovoice.csproj --framework net6.0
8091

8192
- name: Test
82-
run: dotnet test
93+
run: dotnet test --framework net6.0 -v d

0 commit comments

Comments
 (0)