Skip to content

Commit

Permalink
v2.0 (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
laves authored Nov 29, 2023
1 parent 7479dca commit 9851c17
Show file tree
Hide file tree
Showing 274 changed files with 8,597 additions and 4,394 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/android-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
device: [single-android, 32bit-android]
include:
- device: single-android
initPerformanceThresholdSec: 3.0
procPerformanceThresholdSec: 0.5
initPerformanceThresholdSec: 6.0
procPerformanceThresholdSec: 1.0
- device: 32bit-android
initPerformanceThresholdSec: 9.0
procPerformanceThresholdSec: 3.5
initPerformanceThresholdSec: 18.0
procPerformanceThresholdSec: 7.0

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:

- name: Test filedemo
run: ./leopard_file_demo -access_key ${{secrets.PV_VALID_ACCESS_KEY}} -input_audio_path ../../resources/audio_samples/test.wav

build-grpc-demo:
runs-on: ${{ matrix.os }}
defaults:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ios-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
device: [ios-perf]
include:
- device: ios-perf
initPerformanceThresholdSec: 1.5
procPerformanceThresholdSec: 0.2
initPerformanceThresholdSec: 3.0
procPerformanceThresholdSec: 0.4

steps:
- name: Checkout
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/java-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
java-version: ['11', '17', '19']

steps:
- uses: actions/checkout@v3

- name: Set up JDK 11
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: ${{ matrix.java-version }}
distribution: 'temurin'

- name: Build
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/java-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: ubuntu-latest
init_performance_threshold_sec: 2.0
proc_performance_threshold_sec: 0.7
- os: windows-latest
init_performance_threshold_sec: 2.5
init_performance_threshold_sec: 4.0
proc_performance_threshold_sec: 0.9
- os: macos-latest
init_performance_threshold_sec: 2.4
init_performance_threshold_sec: 4.5
proc_performance_threshold_sec: 1.9
- os: windows-latest
init_performance_threshold_sec: 4.0
proc_performance_threshold_sec: 0.9

steps:
Expand All @@ -64,20 +64,20 @@ jobs:
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson]
include:
- machine: rpi3-32
init_performance_threshold_sec: 7.6
proc_performance_threshold_sec: 3.3
init_performance_threshold_sec: 16.0
proc_performance_threshold_sec: 6.0
- machine: rpi3-64
init_performance_threshold_sec: 8.4
proc_performance_threshold_sec: 3.3
init_performance_threshold_sec: 14.0
proc_performance_threshold_sec: 5.5
- machine: rpi4-32
init_performance_threshold_sec: 5.7
proc_performance_threshold_sec: 2.1
init_performance_threshold_sec: 7.0
proc_performance_threshold_sec: 2.5
- machine: rpi4-64
init_performance_threshold_sec: 5.1
proc_performance_threshold_sec: 2.0
init_performance_threshold_sec: 7.0
proc_performance_threshold_sec: 2.5
- machine: jetson
init_performance_threshold_sec: 5.1
proc_performance_threshold_sec: 2.0
init_performance_threshold_sec: 7.0
proc_performance_threshold_sec: 2.6

steps:
- uses: actions/checkout@v3
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
java-version: ['11', '17', '19']

steps:
- uses: actions/checkout@v3

- name: Set up JDK 11
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: ${{ matrix.java-version }}
distribution: 'temurin'

- name: Build
Expand Down
16 changes: 3 additions & 13 deletions .github/workflows/nodejs-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -43,9 +43,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Pre-build dependencies
run: npm install yarn

- name: Install dependencies
run: yarn install

Expand All @@ -62,9 +59,6 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Pre-build dependencies
run: npm install --global yarn

- name: Install dependencies
run: yarn install

Expand All @@ -77,18 +71,14 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [lts/*]

steps:
- uses: actions/checkout@v3

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

- name: Pre-build dependencies
run: npm install yarn
node-version: lts/*

- name: Install dependencies
run: yarn install
26 changes: 10 additions & 16 deletions .github/workflows/nodejs-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: ubuntu-latest
init_performance_threshold_sec: 2.0
proc_performance_threshold_sec: 0.7
- os: windows-latest
init_performance_threshold_sec: 2.5
proc_performance_threshold_sec: 0.9
- os: windows-latest
init_performance_threshold_sec: 2.5
proc_performance_threshold_sec: 1.1
- os: macos-latest
init_performance_threshold_sec: 3.5
proc_performance_threshold_sec: 0.9
init_performance_threshold_sec: 4.0
proc_performance_threshold_sec: 2.0


steps:
Expand All @@ -50,9 +50,6 @@ jobs:
with:
node-version: 18.x

- name: Pre-build dependencies
run: npm install yarn

- name: Install dependencies
run: yarn install

Expand All @@ -69,26 +66,23 @@ jobs:
include:
- machine: rpi3-32
init_performance_threshold_sec: 7.6
proc_performance_threshold_sec: 3.3
proc_performance_threshold_sec: 4.5
- machine: rpi3-64
init_performance_threshold_sec: 8.4
proc_performance_threshold_sec: 3.3
proc_performance_threshold_sec: 4.5
- machine: rpi4-32
init_performance_threshold_sec: 5.7
proc_performance_threshold_sec: 2.1
proc_performance_threshold_sec: 3.3
- machine: rpi4-64
init_performance_threshold_sec: 5.1
proc_performance_threshold_sec: 2.0
proc_performance_threshold_sec: 3.2
- machine: jetson
init_performance_threshold_sec: 5.1
proc_performance_threshold_sec: 2.0
proc_performance_threshold_sec: 3.2

steps:
- uses: actions/checkout@v3

- name: Pre-build dependencies
run: npm install --global yarn

- name: Install dependencies
run: yarn install

Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -45,9 +45,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Pre-build dependencies
run: npm install yarn

- name: Install dependencies
run: yarn install

Expand All @@ -64,9 +61,6 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Pre-build dependencies
run: npm install --global yarn

- name: Install dependencies
run: yarn install

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:

- name: Test
run: python3 leopard_demo_file.py --access_key ${{secrets.PV_VALID_ACCESS_KEY}} --wav_paths ../../resources/audio_samples/test.wav

build-subtitle-demo:
runs-on: ${{ matrix.os }}
defaults:
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
run: pip install -r requirements.txt

- name: Test
run: python main.py
run: python main.py
--access_key ${{secrets.PV_VALID_ACCESS_KEY}}
--url https://www.youtube.com/watch?v=b7wzFEDU0U8
--transcript_path test.txt
30 changes: 15 additions & 15 deletions .github/workflows/python-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: ubuntu-latest
init_performance_threshold_sec: 2.0
init_performance_threshold_sec: 3.5
proc_performance_threshold_sec: 0.7
- os: windows-latest
init_performance_threshold_sec: 2.5
proc_performance_threshold_sec: 0.9
init_performance_threshold_sec: 3.5
proc_performance_threshold_sec: 0.7
- os: macos-latest
init_performance_threshold_sec: 2.4
proc_performance_threshold_sec: 0.9
init_performance_threshold_sec: 3.8
proc_performance_threshold_sec: 1.2

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -74,20 +74,20 @@ jobs:
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson]
include:
- machine: rpi3-32
init_performance_threshold_sec: 7.6
proc_performance_threshold_sec: 3.3
init_performance_threshold_sec: 8.5
proc_performance_threshold_sec: 4.5
- machine: rpi3-64
init_performance_threshold_sec: 8.4
proc_performance_threshold_sec: 3.3
init_performance_threshold_sec: 9.0
proc_performance_threshold_sec: 4.5
- machine: rpi4-32
init_performance_threshold_sec: 5.7
proc_performance_threshold_sec: 2.1
init_performance_threshold_sec: 7.2
proc_performance_threshold_sec: 3.0
- machine: rpi4-64
init_performance_threshold_sec: 5.1
proc_performance_threshold_sec: 2.0
init_performance_threshold_sec: 6.5
proc_performance_threshold_sec: 2.8
- machine: jetson
init_performance_threshold_sec: 5.1
proc_performance_threshold_sec: 2.0
init_performance_threshold_sec: 6.0
proc_performance_threshold_sec: 2.8

steps:
- uses: actions/checkout@v3
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/react-codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ jobs:
- name: Pre-build dependencies
run: npm install yarn

- name: Build Local Web SDK
run: yarn && yarn copywasm && yarn build
working-directory: binding/web

- name: Build Local React SDK
run: yarn && yarn build
working-directory: binding/react

- name: Run Binding Linter
run: yarn && yarn lint
working-directory: binding/react
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/react-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ jobs:
- name: Pre-build dependencies
run: npm install yarn

- name: Build Local Web SDK
run: yarn && yarn copywasm && yarn build
working-directory: binding/web

- name: Build Local React SDK
run: yarn && yarn build
working-directory: binding/react

- name: Install dependencies
run: yarn install

Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/react-native-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
paths:
- 'binding/react-native/**'
- 'lib/common/**'
- 'lib/android/**'
- 'lib/ios/**'
- '.github/workflows/react-native-tests.yml'
- 'resources/audio_samples/**'
- 'resources/.test/**'
Expand All @@ -16,8 +14,6 @@ on:
paths:
- 'binding/react-native/**'
- 'lib/common/**'
- 'lib/android/**'
- 'lib/ios/**'
- '.github/workflows/react-native-tests.yml'
- 'resources/audio_samples/**'
- 'resources/.test/**'
Expand Down Expand Up @@ -63,9 +59,10 @@ jobs:
run: |
yarn install
./copy_test_resources.sh
- name: Cocoapods install
working-directory: binding/react-native/test-app/LeopardTestApp/ios
run: pod install
run: pod install --repo-update

- name: Inject AppID
run: sed -i '.bak' 's:{TESTING_ACCESS_KEY_HERE}:${{secrets.PV_VALID_ACCESS_KEY}}:' Tests.ts
Expand Down
Loading

0 comments on commit 9851c17

Please sign in to comment.