Skip to content

Commit

Permalink
v3.0 (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
laves authored Oct 26, 2023
1 parent 0464eaf commit 173e8a8
Show file tree
Hide file tree
Showing 275 changed files with 25,172 additions and 22,400 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/angular-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x]

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

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/dotnet-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@ jobs:
include:
- os: ubuntu-latest
platform: linux
nuget-path: ~/.nuget/NuGet/local-nuget
- os: windows-latest
platform: windows
nuget-path: ~/AppData/Roaming/NuGet/local-nuget
- os: macos-latest
platform: mac
nuget-path: ~/.nuget/NuGet/local-nuget

steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ jobs:
- dotnet-version: 6.0.x
binding-framework: net6.0
test-framework: net6.0
- os: ubuntu-latest
nuget-path: ~/.nuget/NuGet/local-nuget
- os: macos-latest
nuget-path: ~/.nuget/NuGet/local-nuget
- os: windows-latest
nuget-path: ~/AppData/Roaming/NuGet/local-nuget

steps:
- name: Checkout repository and submodules
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/go-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,19 @@ jobs:

strategy:
matrix:
go: [ '1.16', '1.17', '1.18' ]
go: [ '1.16', '1.17', '1.18', '1.19', '1.20', 'stable' ]

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

- name: Set up Mingw
uses: egor-tensin/setup-mingw@v2
if: ${{ (matrix.os == 'windows-latest') && (matrix.go != 'stable') && (matrix.go < 1.20) }}
with:
version: 11.2.0

- name: Setup go
uses: actions/setup-go@v4
with:
Expand All @@ -46,13 +52,19 @@ jobs:

strategy:
matrix:
go: [ '1.16', '1.17', '1.18' ]
go: [ '1.16', '1.17', '1.18', '1.19', '1.20', 'stable' ]

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

- name: Set up Mingw
uses: egor-tensin/setup-mingw@v2
if: ${{ (matrix.os == 'windows-latest') && (matrix.go != 'stable') && (matrix.go < 1.20) }}
with:
version: 11.2.0

- name: Setup go
uses: actions/setup-go@v4
with:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,19 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
go: [ '1.16', '1.17', '1.18' ]
go: [ '1.16', '1.17', '1.18', '1.19', '1.20', 'stable' ]

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

- name: Set up Mingw
uses: egor-tensin/setup-mingw@v2
if: ${{ (matrix.os == 'windows-latest') && (matrix.go != 'stable') && (matrix.go < 1.20) }}
with:
version: 11.2.0

- name: Setup go
uses: actions/setup-go@v4
with:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/nodejs-codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ jobs:
with:
node-version: lts/*

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

- name: Run Binding Linter
run: yarn && yarn lint
working-directory: sdk/nodejs
6 changes: 2 additions & 4 deletions .github/workflows/nodejs-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,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]
include:
- os: ubuntu-latest
platform: linux
Expand All @@ -46,9 +46,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

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

- name: Install dependencies
run: yarn install

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

strategy:
fail-fast: false
matrix:
machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson, beaglebone]
include:
Expand Down
27 changes: 3 additions & 24 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-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 @@ -46,27 +46,17 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Local Porcupine dependency
run: yarn && yarn build
working-directory: resources/porcupine/binding/nodejs

- name: Local Rhino dependency
run: yarn && yarn build
working-directory: resources/rhino/binding/nodejs

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

- name: Install dependencies
run: yarn install

- name: Test
run: yarn test --access_key=${{secrets.PV_VALID_ACCESS_KEY}}
run: yarn test --access_key=${{secrets.PV_VALID_ACCESS_KEY}}

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

strategy:
fail-fast: false
matrix:
machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson, beaglebone]

Expand All @@ -75,17 +65,6 @@ jobs:
with:
submodules: recursive

- name: Local Porcupine dependency
run: yarn && yarn build
working-directory: resources/porcupine/binding/nodejs

- name: Local Rhino dependency
run: yarn && yarn build
working-directory: resources/rhino/binding/nodejs

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

- name: Install dependencies
run: yarn install

Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/python-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
include:
- os: ubuntu-latest
platform: linux
Expand All @@ -46,7 +46,9 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Pre-build dependencies
run: python -m pip install --upgrade pip
run: |
python -m pip install --upgrade pip
pip install wheel
- name: Install dependencies
run: pip install -r requirements.txt
Expand Down Expand Up @@ -85,6 +87,11 @@ jobs:
with:
submodules: recursive

- name: Pre-build dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install wheel
- name: Install dependencies
run: pip3 install -r requirements.txt

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']

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

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v3
Expand Down
96 changes: 88 additions & 8 deletions .github/workflows/react-native-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,28 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Pre-build dependencies
run: npm install yarn
# ************ REMOVE AFTER RELEASE *****************
- name: Build and package ppn
working-directory: resources/porcupine/binding/react-native
run: yarn && yarn pkg

- name: Add to demo
run: yarn add ../../resources/porcupine/binding/react-native/pkg/picovoice-porcupine-react-native-3.0.0.tgz

- name: Build and package rhn
working-directory: resources/rhino/binding/react-native
run: yarn && yarn pkg

- name: Add to demo
run: yarn add ../../resources/rhino/binding/react-native/pkg/picovoice-rhino-react-native-3.0.0.tgz

- name: Build and package pv
working-directory: sdk/react-native
run: yarn && yarn pkg

- name: Add to demo
run: yarn add ../../sdk/react-native/pkg/picovoice-picovoice-react-native-3.0.0.tgz
# ***************************************************

- name: Install dependencies
run: yarn android-install
Expand Down Expand Up @@ -71,8 +91,28 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Pre-build dependencies
run: npm install yarn
# ************ REMOVE AFTER RELEASE *****************
- name: Build and package ppn
working-directory: resources/porcupine/binding/react-native
run: yarn && yarn pkg

- name: Add to demo
run: yarn add ../../resources/porcupine/binding/react-native/pkg/picovoice-porcupine-react-native-3.0.0.tgz

- name: Build and package rhn
working-directory: resources/rhino/binding/react-native
run: yarn && yarn pkg

- name: Add to demo
run: yarn add ../../resources/rhino/binding/react-native/pkg/picovoice-rhino-react-native-3.0.0.tgz

- name: Build and package pv
working-directory: sdk/react-native
run: yarn && yarn pkg

- name: Add to demo
run: yarn add ../../sdk/react-native/pkg/picovoice-picovoice-react-native-3.0.0.tgz
# ***************************************************

- name: Install dependencies
run: yarn ios-install
Expand Down Expand Up @@ -110,8 +150,28 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Pre-build dependencies
run: npm install yarn --legacy-peer-deps
# ************ REMOVE AFTER RELEASE *****************
- name: Build and package ppn
working-directory: resources/porcupine/binding/react-native
run: yarn && yarn pkg

- name: Add to demo
run: yarn add ../../resources/porcupine/binding/react-native/pkg/picovoice-porcupine-react-native-3.0.0.tgz

- name: Build and package rhn
working-directory: resources/rhino/binding/react-native
run: yarn && yarn pkg

- name: Add to demo
run: yarn add ../../resources/rhino/binding/react-native/pkg/picovoice-rhino-react-native-3.0.0.tgz

- name: Build and package pv
working-directory: sdk/react-native
run: yarn && yarn pkg

- name: Add to demo
run: yarn add ../../sdk/react-native/pkg/picovoice-picovoice-react-native-3.0.0.tgz
# ***************************************************

- name: Install dependencies
run: yarn android-install
Expand Down Expand Up @@ -143,8 +203,28 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Pre-build dependencies
run: npm install yarn --legacy-peer-deps
# ************ REMOVE AFTER RELEASE *****************
- name: Build and package ppn
working-directory: resources/porcupine/binding/react-native
run: yarn && yarn pkg

- name: Add to demo
run: yarn add ../../resources/porcupine/binding/react-native/pkg/picovoice-porcupine-react-native-3.0.0.tgz

- name: Build and package rhn
working-directory: resources/rhino/binding/react-native
run: yarn && yarn pkg

- name: Add to demo
run: yarn add ../../resources/rhino/binding/react-native/pkg/picovoice-rhino-react-native-3.0.0.tgz

- name: Build and package pv
working-directory: sdk/react-native
run: yarn && yarn pkg

- name: Add to demo
run: yarn add ../../sdk/react-native/pkg/picovoice-picovoice-react-native-3.0.0.tgz
# ***************************************************

- name: Install dependencies
run: yarn ios-install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v3
Expand Down
Loading

0 comments on commit 173e8a8

Please sign in to comment.