Skip to content

Commit

Permalink
v2.2 (#941)
Browse files Browse the repository at this point in the history
  • Loading branch information
laves authored Apr 13, 2023
1 parent 6038552 commit 2814c8e
Show file tree
Hide file tree
Showing 1,327 changed files with 20,795 additions and 11,107 deletions.
52 changes: 29 additions & 23 deletions .github/workflows/android-appcenter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,60 +4,66 @@ on:
workflow_dispatch:
push:
branches: [ master ]
paths:
- 'demo/android/Activity/porcupine-activity-demo-app/build.gradle'
paths:
- '.github/workflows/android-appcenter.yml'
- 'demo/android/Activity/**'
- '!demo/android/Activity/README.md'
- 'resources/.test/**'
- 'resources/audio_samples/**'
pull_request:
branches: [ master ]
paths:
- 'demo/android/Activity/porcupine-activity-demo-app/build.gradle'
branches: [ master, 'v[0-9]+.[0-9]+' ]
paths:
- '.github/workflows/android-appcenter.yml'
- 'demo/android/Activity/**'
- '!demo/android/Activity/README.md'
- 'resources/.test/**'
- 'resources/audio_samples/**'

defaults:
run:
working-directory: demo/android/Activity

jobs:
build:
name: Run Android Tests on AppCenter
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Node.js environment
uses: actions/setup-node@v2.4.0

- name: Install AppCenter CLI
run: npm install -g appcenter-cli

- name: set up JDK 11
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
distribution: 'temurin'

- name: Copy test_resources
run: ./copy_test_resources.sh

- name: Inject AccessKey
run: echo pvTestingAccessKey="${{secrets.PV_VALID_ACCESS_KEY}}" >> local.properties

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build app
run: ./gradlew assembleDebug

- name: Build androidTest
run: ./gradlew assembleAndroidTest

- name: Run tests on AppCenter
run: appcenter test run espresso
run: appcenter test run espresso
--token ${{secrets.APPCENTERAPITOKEN}}
--app "Picovoice/Porcupine-Android"
--app "Picovoice/Porcupine-Android"
--devices "Picovoice/android-min-max"
--app-path porcupine-activity-demo-app/build/outputs/apk/debug/porcupine-activity-demo-app-debug.apk
--test-series "porcupine-android"
--locale "en_US"
--app-path porcupine-activity-demo-app/build/outputs/apk/debug/porcupine-activity-demo-app-debug.apk
--test-series "porcupine-android"
--locale "en_US"
--build-dir porcupine-activity-demo-app/build/outputs/apk/androidTest/debug
52 changes: 24 additions & 28 deletions .github/workflows/android-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,19 @@ on:
workflow_dispatch:
push:
branches: [ master ]
paths:
- 'lib/android/**'
- 'lib/common/**'
- 'resources/keyword_files/android/**'
paths:
- '.github/workflows/android-perf.yml'
- 'demo/android/Activity/**/build.gradle'
pull_request:
branches: [ master ]
paths:
- 'lib/android/**'
- 'lib/common/**'
- 'resources/keyword_files/android/**'
branches: [ master, 'v[0-9]+.[0-9]+' ]
paths:
- '.github/workflows/android-perf.yml'
- 'demo/android/Activity/**/build.gradle'

defaults:
run:
working-directory: demo/android/Activity

jobs:
build:
name: Run Android Speed Tests on AppCenter
Expand All @@ -33,26 +29,26 @@ jobs:
- device: single-android
performanceThresholdSec: 0.5
- device: 32bit-android
performanceThresholdSec: 1.25
performanceThresholdSec: 2.75

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Node.js environment
uses: actions/setup-node@v2.4.0

- name: Install AppCenter CLI
run: npm install -g appcenter-cli

- name: set up JDK 11
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
distribution: 'temurin'

- name: Copy test_resources
run: ./copy_test_resources.sh

- name: Inject AccessKey
run: echo pvTestingAccessKey="${{secrets.PV_VALID_ACCESS_KEY}}" >> local.properties

Expand All @@ -61,22 +57,22 @@ jobs:

- name: Inject Performance Threshold
run: echo performanceThresholdSec="${{ matrix.performanceThresholdSec }}" >> local.properties

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build app
run: ./gradlew assembleDebug

- name: Build androidTest
run: ./gradlew assembleAndroidTest

- name: Run tests on AppCenter
run: appcenter test run espresso
run: appcenter test run espresso
--token ${{secrets.APPCENTERAPITOKEN}}
--app "Picovoice/Porcupine-Android"
--app "Picovoice/Porcupine-Android"
--devices "Picovoice/${{ matrix.device }}"
--app-path porcupine-activity-demo-app/build/outputs/apk/debug/porcupine-activity-demo-app-debug.apk
--test-series "porcupine-android"
--locale "en_US"
--app-path porcupine-activity-demo-app/build/outputs/apk/debug/porcupine-activity-demo-app-debug.apk
--test-series "porcupine-android"
--locale "en_US"
--build-dir porcupine-activity-demo-app/build/outputs/apk/androidTest/debug
6 changes: 3 additions & 3 deletions .github/workflows/angular-codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- '**/angular/*.ts'
- '.github/workflows/angular-codestyle.yml'
pull_request:
branches: [ master ]
branches: [ master, 'v[0-9]+.[0-9]+' ]
paths:
- '**/angular/*.js'
- '**/angular/*.ts'
Expand All @@ -20,10 +20,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Node.js lts/*
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: lts/*

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/angular-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- '!demo/angular/README.md'
- '.github/workflows/angular-demos.yml'
pull_request:
branches: [ master ]
branches: [ master, 'v[0-9]+.[0-9]+' ]
paths:
- 'demo/angular/**'
- '!demo/angular/README.md'
Expand All @@ -28,10 +28,10 @@ jobs:
node-version: [14.x, 16.x, 18.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/angular.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ on:
- 'lib/common/**'
- 'lib/wasm/**'
- 'resources/**'
- '!resources/lint/**'
- '!resources/.lint/**'
- '.github/workflows/angular.yml'
pull_request:
branches: [ master ]
branches: [ master, 'v[0-9]+.[0-9]+' ]
paths:
- 'binding/angular/**'
- '!binding/angular/README.md'
- 'lib/common/**'
- 'lib/wasm/**'
- 'resources/**'
- '!resources/lint/**'
- '!resources/.lint/**'
- '.github/workflows/angular.yml'

defaults:
Expand All @@ -36,10 +36,10 @@ jobs:
node-version: [14.x, 16.x, 18.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/c-codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- '**/*.c'
- '.github/workflows/c-codestyle.yml'
pull_request:
branches: [ master ]
branches: [ master, 'v[0-9]+.[0-9]+' ]
paths:
- '**/*.c'
- '.github/workflows/c-codestyle.yml'
Expand All @@ -18,15 +18,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies
run: sudo apt install clang-format

- name: Check c codestyle
run: python3 resources/lint/c/formatter.py -c -v
run: python3 resources/.lint/c/formatter.py -c -v
26 changes: 13 additions & 13 deletions .github/workflows/c-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,45 +5,45 @@ on:
push:
branches: [ master ]
paths:
- 'demo/c/**'
- '!demo/c/README.md'
- '.github/workflows/c-demos.yml'
- 'demo/c/**'
- 'lib/beaglebone/**'
- 'lib/common/**'
- 'lib/linux/**'
- 'lib/jetson/**'
- 'lib/linux/**'
- 'lib/mac/**'
- 'lib/raspberry-pi/**'
- 'lib/windows/**'
- 'resources/.test/**'
- 'resources/audio_samples/**'
- 'resources/keyword_files*/beaglebone/**'
- 'resources/keyword_files*/jetson/**'
- 'resources/keyword_files*/linux/**'
- 'resources/keyword_files*/mac/**'
- 'resources/keyword_files*/raspberry-pi/**'
- 'resources/keyword_files*/windows/**'
- 'resources/test/**'
- '.github/workflows/c-demos.yml'
pull_request:
branches: [ master ]
branches: [ master, 'v[0-9]+.[0-9]+' ]
paths:
- 'demo/c/**'
- '!demo/c/README.md'
- '.github/workflows/c-demos.yml'
- 'demo/c/**'
- 'lib/beaglebone/**'
- 'lib/common/**'
- 'lib/linux/**'
- 'lib/jetson/**'
- 'lib/linux/**'
- 'lib/mac/**'
- 'lib/raspberry-pi/**'
- 'lib/windows/**'
- 'resources/.test/**'
- 'resources/audio_samples/**'
- 'resources/keyword_files*/beaglebone/**'
- 'resources/keyword_files*/jetson/**'
- 'resources/keyword_files*/linux/**'
- 'resources/keyword_files*/mac/**'
- 'resources/keyword_files*/raspberry-pi/**'
- 'resources/keyword_files*/windows/**'
- 'resources/test/**'
- '.github/workflows/c-demos.yml'


defaults:
Expand All @@ -59,7 +59,7 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive

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

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive

Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
submodules: recursive

- name: Set up Python '3.10'
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.10'

Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
arch: ''

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive

Expand Down
Loading

0 comments on commit 2814c8e

Please sign in to comment.