Skip to content

Commit 2814c8e

Browse files
authored
v2.2 (#941)
1 parent 6038552 commit 2814c8e

File tree

1,327 files changed

+20795
-11107
lines changed

Some content is hidden

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

1,327 files changed

+20795
-11107
lines changed

.github/workflows/android-appcenter.yml

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,60 +4,66 @@ on:
44
workflow_dispatch:
55
push:
66
branches: [ master ]
7-
paths:
8-
- 'demo/android/Activity/porcupine-activity-demo-app/build.gradle'
7+
paths:
98
- '.github/workflows/android-appcenter.yml'
9+
- 'demo/android/Activity/**'
10+
- '!demo/android/Activity/README.md'
11+
- 'resources/.test/**'
12+
- 'resources/audio_samples/**'
1013
pull_request:
11-
branches: [ master ]
12-
paths:
13-
- 'demo/android/Activity/porcupine-activity-demo-app/build.gradle'
14+
branches: [ master, 'v[0-9]+.[0-9]+' ]
15+
paths:
1416
- '.github/workflows/android-appcenter.yml'
17+
- 'demo/android/Activity/**'
18+
- '!demo/android/Activity/README.md'
19+
- 'resources/.test/**'
20+
- 'resources/audio_samples/**'
1521

1622
defaults:
1723
run:
1824
working-directory: demo/android/Activity
19-
25+
2026
jobs:
2127
build:
2228
name: Run Android Tests on AppCenter
2329
runs-on: ubuntu-latest
2430

2531
steps:
26-
- uses: actions/checkout@v2
27-
32+
- uses: actions/checkout@v3
33+
2834
- name: Setup Node.js environment
2935
uses: actions/setup-node@v2.4.0
30-
36+
3137
- name: Install AppCenter CLI
3238
run: npm install -g appcenter-cli
33-
39+
3440
- name: set up JDK 11
35-
uses: actions/setup-java@v2
41+
uses: actions/setup-java@v3
3642
with:
3743
java-version: '11'
38-
distribution: 'adopt'
39-
44+
distribution: 'temurin'
45+
4046
- name: Copy test_resources
4147
run: ./copy_test_resources.sh
42-
48+
4349
- name: Inject AccessKey
4450
run: echo pvTestingAccessKey="${{secrets.PV_VALID_ACCESS_KEY}}" >> local.properties
45-
51+
4652
- name: Grant execute permission for gradlew
4753
run: chmod +x gradlew
48-
54+
4955
- name: Build app
5056
run: ./gradlew assembleDebug
51-
57+
5258
- name: Build androidTest
5359
run: ./gradlew assembleAndroidTest
54-
60+
5561
- name: Run tests on AppCenter
56-
run: appcenter test run espresso
62+
run: appcenter test run espresso
5763
--token ${{secrets.APPCENTERAPITOKEN}}
58-
--app "Picovoice/Porcupine-Android"
64+
--app "Picovoice/Porcupine-Android"
5965
--devices "Picovoice/android-min-max"
60-
--app-path porcupine-activity-demo-app/build/outputs/apk/debug/porcupine-activity-demo-app-debug.apk
61-
--test-series "porcupine-android"
62-
--locale "en_US"
66+
--app-path porcupine-activity-demo-app/build/outputs/apk/debug/porcupine-activity-demo-app-debug.apk
67+
--test-series "porcupine-android"
68+
--locale "en_US"
6369
--build-dir porcupine-activity-demo-app/build/outputs/apk/androidTest/debug

.github/workflows/android-perf.yml

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,19 @@ on:
44
workflow_dispatch:
55
push:
66
branches: [ master ]
7-
paths:
8-
- 'lib/android/**'
9-
- 'lib/common/**'
10-
- 'resources/keyword_files/android/**'
7+
paths:
118
- '.github/workflows/android-perf.yml'
9+
- 'demo/android/Activity/**/build.gradle'
1210
pull_request:
13-
branches: [ master ]
14-
paths:
15-
- 'lib/android/**'
16-
- 'lib/common/**'
17-
- 'resources/keyword_files/android/**'
11+
branches: [ master, 'v[0-9]+.[0-9]+' ]
12+
paths:
1813
- '.github/workflows/android-perf.yml'
14+
- 'demo/android/Activity/**/build.gradle'
1915

2016
defaults:
2117
run:
2218
working-directory: demo/android/Activity
23-
19+
2420
jobs:
2521
build:
2622
name: Run Android Speed Tests on AppCenter
@@ -33,26 +29,26 @@ jobs:
3329
- device: single-android
3430
performanceThresholdSec: 0.5
3531
- device: 32bit-android
36-
performanceThresholdSec: 1.25
32+
performanceThresholdSec: 2.75
3733

3834
steps:
39-
- uses: actions/checkout@v2
40-
35+
- uses: actions/checkout@v3
36+
4137
- name: Setup Node.js environment
4238
uses: actions/setup-node@v2.4.0
43-
39+
4440
- name: Install AppCenter CLI
4541
run: npm install -g appcenter-cli
46-
42+
4743
- name: set up JDK 11
48-
uses: actions/setup-java@v2
44+
uses: actions/setup-java@v3
4945
with:
5046
java-version: '11'
51-
distribution: 'adopt'
52-
47+
distribution: 'temurin'
48+
5349
- name: Copy test_resources
5450
run: ./copy_test_resources.sh
55-
51+
5652
- name: Inject AccessKey
5753
run: echo pvTestingAccessKey="${{secrets.PV_VALID_ACCESS_KEY}}" >> local.properties
5854

@@ -61,22 +57,22 @@ jobs:
6157

6258
- name: Inject Performance Threshold
6359
run: echo performanceThresholdSec="${{ matrix.performanceThresholdSec }}" >> local.properties
64-
60+
6561
- name: Grant execute permission for gradlew
6662
run: chmod +x gradlew
67-
63+
6864
- name: Build app
6965
run: ./gradlew assembleDebug
70-
66+
7167
- name: Build androidTest
7268
run: ./gradlew assembleAndroidTest
73-
69+
7470
- name: Run tests on AppCenter
75-
run: appcenter test run espresso
71+
run: appcenter test run espresso
7672
--token ${{secrets.APPCENTERAPITOKEN}}
77-
--app "Picovoice/Porcupine-Android"
73+
--app "Picovoice/Porcupine-Android"
7874
--devices "Picovoice/${{ matrix.device }}"
79-
--app-path porcupine-activity-demo-app/build/outputs/apk/debug/porcupine-activity-demo-app-debug.apk
80-
--test-series "porcupine-android"
81-
--locale "en_US"
75+
--app-path porcupine-activity-demo-app/build/outputs/apk/debug/porcupine-activity-demo-app-debug.apk
76+
--test-series "porcupine-android"
77+
--locale "en_US"
8278
--build-dir porcupine-activity-demo-app/build/outputs/apk/androidTest/debug

.github/workflows/angular-codestyle.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- '**/angular/*.ts'
1010
- '.github/workflows/angular-codestyle.yml'
1111
pull_request:
12-
branches: [ master ]
12+
branches: [ master, 'v[0-9]+.[0-9]+' ]
1313
paths:
1414
- '**/angular/*.js'
1515
- '**/angular/*.ts'
@@ -20,10 +20,10 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v3
2424

2525
- name: Set up Node.js lts/*
26-
uses: actions/setup-node@v2
26+
uses: actions/setup-node@v3
2727
with:
2828
node-version: lts/*
2929

.github/workflows/angular-demos.yml

Lines changed: 3 additions & 3 deletions
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,10 +28,10 @@ jobs:
2828
node-version: [14.x, 16.x, 18.x]
2929

3030
steps:
31-
- uses: actions/checkout@v2
31+
- uses: actions/checkout@v3
3232

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

.github/workflows/angular.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ on:
1010
- 'lib/common/**'
1111
- 'lib/wasm/**'
1212
- 'resources/**'
13-
- '!resources/lint/**'
13+
- '!resources/.lint/**'
1414
- '.github/workflows/angular.yml'
1515
pull_request:
16-
branches: [ master ]
16+
branches: [ master, 'v[0-9]+.[0-9]+' ]
1717
paths:
1818
- 'binding/angular/**'
1919
- '!binding/angular/README.md'
2020
- 'lib/common/**'
2121
- 'lib/wasm/**'
2222
- 'resources/**'
23-
- '!resources/lint/**'
23+
- '!resources/.lint/**'
2424
- '.github/workflows/angular.yml'
2525

2626
defaults:
@@ -36,10 +36,10 @@ jobs:
3636
node-version: [14.x, 16.x, 18.x]
3737

3838
steps:
39-
- uses: actions/checkout@v2
39+
- uses: actions/checkout@v3
4040

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

.github/workflows/c-codestyle.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- '**/*.c'
99
- '.github/workflows/c-codestyle.yml'
1010
pull_request:
11-
branches: [ master ]
11+
branches: [ master, 'v[0-9]+.[0-9]+' ]
1212
paths:
1313
- '**/*.c'
1414
- '.github/workflows/c-codestyle.yml'
@@ -18,15 +18,15 @@ jobs:
1818
runs-on: ubuntu-latest
1919

2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v3
2222

2323
- name: Set up Python 3.10
24-
uses: actions/setup-python@v2
24+
uses: actions/setup-python@v4
2525
with:
2626
python-version: '3.10'
2727

2828
- name: Install dependencies
2929
run: sudo apt install clang-format
3030

3131
- name: Check c codestyle
32-
run: python3 resources/lint/c/formatter.py -c -v
32+
run: python3 resources/.lint/c/formatter.py -c -v

.github/workflows/c-demos.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,45 +5,45 @@ on:
55
push:
66
branches: [ master ]
77
paths:
8-
- 'demo/c/**'
98
- '!demo/c/README.md'
9+
- '.github/workflows/c-demos.yml'
10+
- 'demo/c/**'
1011
- 'lib/beaglebone/**'
1112
- 'lib/common/**'
12-
- 'lib/linux/**'
1313
- 'lib/jetson/**'
14+
- 'lib/linux/**'
1415
- 'lib/mac/**'
1516
- 'lib/raspberry-pi/**'
1617
- 'lib/windows/**'
18+
- 'resources/.test/**'
1719
- 'resources/audio_samples/**'
1820
- 'resources/keyword_files*/beaglebone/**'
1921
- 'resources/keyword_files*/jetson/**'
2022
- 'resources/keyword_files*/linux/**'
2123
- 'resources/keyword_files*/mac/**'
2224
- 'resources/keyword_files*/raspberry-pi/**'
2325
- 'resources/keyword_files*/windows/**'
24-
- 'resources/test/**'
25-
- '.github/workflows/c-demos.yml'
2626
pull_request:
27-
branches: [ master ]
27+
branches: [ master, 'v[0-9]+.[0-9]+' ]
2828
paths:
29-
- 'demo/c/**'
3029
- '!demo/c/README.md'
30+
- '.github/workflows/c-demos.yml'
31+
- 'demo/c/**'
3132
- 'lib/beaglebone/**'
3233
- 'lib/common/**'
33-
- 'lib/linux/**'
3434
- 'lib/jetson/**'
35+
- 'lib/linux/**'
3536
- 'lib/mac/**'
3637
- 'lib/raspberry-pi/**'
3738
- 'lib/windows/**'
39+
- 'resources/.test/**'
3840
- 'resources/audio_samples/**'
3941
- 'resources/keyword_files*/beaglebone/**'
4042
- 'resources/keyword_files*/jetson/**'
4143
- 'resources/keyword_files*/linux/**'
4244
- 'resources/keyword_files*/mac/**'
4345
- 'resources/keyword_files*/raspberry-pi/**'
4446
- 'resources/keyword_files*/windows/**'
45-
- 'resources/test/**'
46-
- '.github/workflows/c-demos.yml'
4747

4848

4949
defaults:
@@ -59,7 +59,7 @@ jobs:
5959
os: [ubuntu-latest, windows-latest, macos-latest]
6060

6161
steps:
62-
- uses: actions/checkout@v2
62+
- uses: actions/checkout@v3
6363
with:
6464
submodules: recursive
6565

@@ -77,7 +77,7 @@ jobs:
7777
machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson, beaglebone]
7878

7979
steps:
80-
- uses: actions/checkout@v2
80+
- uses: actions/checkout@v3
8181
with:
8282
submodules: recursive
8383

@@ -110,7 +110,7 @@ jobs:
110110
submodules: recursive
111111

112112
- name: Set up Python '3.10'
113-
uses: actions/setup-python@v2
113+
uses: actions/setup-python@v4
114114
with:
115115
python-version: '3.10'
116116

@@ -156,7 +156,7 @@ jobs:
156156
arch: ''
157157

158158
steps:
159-
- uses: actions/checkout@v2
159+
- uses: actions/checkout@v3
160160
with:
161161
submodules: recursive
162162

0 commit comments

Comments
 (0)