Skip to content

Commit

Permalink
release .NET, Rust, Go, Java, Python, Node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
albho committed Aug 27, 2024
1 parent 78a760e commit bb69d40
Show file tree
Hide file tree
Showing 20 changed files with 14 additions and 112 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/dotnet-codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,6 @@ jobs:
run: dotnet format --verify-no-changes
working-directory: binding/dotnet

# ************** REMOVE AFTER RELEASE ********************
- name: Pack .NET SDK
run: dotnet pack -c Release
working-directory: binding/dotnet

- name: Add local NuGet package file
continue-on-error: true
run: dotnet add package -s ../../../binding/dotnet/Porcupine/bin/Release Porcupine
working-directory: demo/dotnet/PorcupineDemo
# ********************************************************

- name: Run Demo Codestyle
run: dotnet format --verify-no-changes
working-directory: demo/dotnet
Expand Down
30 changes: 0 additions & 30 deletions .github/workflows/dotnet-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,6 @@ jobs:
with:
dotnet-version: 6.0.x

# ************** REMOVE AFTER RELEASE ********************
- name: Pack .NET SDK
run: dotnet pack -c Release
working-directory: binding/dotnet

- name: Add local NuGet package file
continue-on-error: true
run: dotnet add package -s ../../../binding/dotnet/Porcupine/bin/Release Porcupine
# ********************************************************

- name: Package restore
run: dotnet restore

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

# ************** REMOVE AFTER RELEASE ********************
- name: Pack .NET SDK
run: dotnet pack -c Release
working-directory: binding/dotnet

- name: Add local NuGet package file
continue-on-error: true
run: dotnet add package -s ../../../binding/dotnet/Porcupine/bin/Release Porcupine
# ********************************************************

- name: Package restore
run: dotnet restore

Expand Down Expand Up @@ -111,16 +91,6 @@ jobs:
with:
dotnet-version: 6.0.x

# ************** REMOVE AFTER RELEASE ********************
- name: Pack .NET SDK
run: dotnet pack -c Release
working-directory: binding/dotnet

- name: Add local NuGet package file
continue-on-error: true
run: dotnet add package -s ../../../binding/dotnet/Porcupine/bin/Release Porcupine
# ********************************************************

- name: Package restore
run: dotnet restore

Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/go-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ jobs:
with:
go-version: ${{ matrix.go }}

# ************** REMOVE AFTER RELEASE ********************
- name: Install Go SDK from branch
run: go get github.com/Picovoice/porcupine/binding/go/v3/@c9e201a16322b65a603e74e9b772a3a35d72ec47
# ********************************************************

- name: Build micdemo
run: go build micdemo/porcupine_mic_demo.go

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

# ************** REMOVE AFTER RELEASE ********************
- name: Install Go SDK from branch
run: go get github.com/Picovoice/porcupine/binding/go/v3/@c9e201a16322b65a603e74e9b772a3a35d72ec47
# ********************************************************

- name: Build micdemo
run: go build micdemo/porcupine_mic_demo.go

Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/nodejs-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

# ************** REMOVE AFTER RELEASE ********************
- name: Build Node.js SDK
run: yarn && yarn build
working-directory: binding/nodejs
# ********************************************************

- name: Install dependencies
run: yarn install

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

# ************** REMOVE AFTER RELEASE ********************
- name: Build Node.js SDK
run: yarn && yarn build
working-directory: binding/nodejs
# ********************************************************

- name: Install dependencies
run: yarn install

Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/python-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ jobs:
- name: Pre-build dependencies
run: python -m pip install --upgrade pip

# TODO: remove after release
- name: Build dependencies
run: |
python -m pip install -U pip setuptools
pip install wheel && cd ../../binding/python && python3 setup.py sdist bdist_wheel && pip install dist/pvporcupine-3.0.3-py3-none-any.whl
- name: Install dependencies
run: pip install -r requirements.txt

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

# TODO: remove after release
- name: Build dependencies
run: pip install wheel && cd ../../binding/python && python3 setup.py sdist bdist_wheel && pip install dist/pvporcupine-3.0.3-py3-none-any.whl

- name: Install dependencies
run: pip3 install -r requirements.txt

Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/rust-codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ jobs:
toolchain: stable
override: true

# ************** REMOVE AFTER RELEASE ********************
- name: Build Rust SDK
run: ./copy.sh
working-directory: binding/rust
# ********************************************************

- name: Run clippy
run: cargo clippy -- -D warnings
working-directory: binding/rust
Expand All @@ -71,12 +65,6 @@ jobs:
toolchain: stable
override: true

# ************** REMOVE AFTER RELEASE ********************
- name: Build Rust SDK
run: ./copy.sh
working-directory: binding/rust
# ********************************************************

- name: Run clippy
run: cargo clippy -- -D warnings
working-directory: demo/rust/filedemo
Expand All @@ -98,12 +86,6 @@ jobs:
toolchain: stable
override: true

# ************** REMOVE AFTER RELEASE ********************
- name: Build Rust SDK
run: ./copy.sh
working-directory: binding/rust
# ********************************************************

- name: Run clippy
run: cargo clippy -- -D warnings
working-directory: demo/rust/micdemo
12 changes: 0 additions & 12 deletions .github/workflows/rust-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ jobs:
toolchain: stable
override: true

# ************** REMOVE AFTER RELEASE ********************
- name: Build Rust SDK
run: ./copy.sh
working-directory: binding/rust
# ********************************************************

- name: Rust build micdemo
run: cargo build --verbose
working-directory: demo/rust/micdemo
Expand Down Expand Up @@ -79,12 +73,6 @@ jobs:
toolchain: nightly
override: true

# ************** REMOVE AFTER RELEASE ********************
- name: Build Rust SDK
run: ./copy.sh
working-directory: binding/rust
# ********************************************************

- name: Rust build micdemo
run: cargo build --verbose
working-directory: demo/rust/micdemo
Expand Down
Empty file modified binding/go/embedded/lib/linux/x86_64/libpv_porcupine.so
100644 → 100755
Empty file.
Empty file modified binding/go/embedded/lib/mac/x86_64/libpv_porcupine.dylib
100644 → 100755
Empty file.
Binary file not shown.
2 changes: 1 addition & 1 deletion demo/dotnet-vui/AvaloniaVUI/AvaloniaVUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
<PackageReference Include="Avalonia.Desktop" Version="0.9.12" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.9.12" />
<PackageReference Include="PvRecorder" Version="1.2.5" />
<PackageReference Include="Porcupine" Version="3.0.2" />
<PackageReference Include="Porcupine" Version="3.0.3" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion demo/go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module porcupinedemo
go 1.16

require (
github.com/Picovoice/porcupine/binding/go/v3 v3.0.3-0.20240815003250-c9e201a16322
github.com/Picovoice/porcupine/binding/go/v3 v3.0.3
github.com/Picovoice/pvrecorder/binding/go v1.2.2
github.com/go-audio/audio v1.0.0
github.com/go-audio/wav v1.0.0
Expand Down
2 changes: 2 additions & 0 deletions demo/go/go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
github.com/Picovoice/porcupine/binding/go/v3 v3.0.3-0.20240815003250-c9e201a16322 h1:34XY5e6fDUJAVVtVGS53wfmNMco28tRipYaNtXc4cdQ=
github.com/Picovoice/porcupine/binding/go/v3 v3.0.3-0.20240815003250-c9e201a16322/go.mod h1:6Pg/746wMh0GDNEWqi56GuTsTk7WLeVgTB0ZhyERs8U=
github.com/Picovoice/porcupine/binding/go/v3 v3.0.3 h1:MDmmEr2VJNIbSWrUg+cCmJ5NKTkYpzhTUHB2VmIEpVw=
github.com/Picovoice/porcupine/binding/go/v3 v3.0.3/go.mod h1:6Pg/746wMh0GDNEWqi56GuTsTk7WLeVgTB0ZhyERs8U=
github.com/Picovoice/pvrecorder/binding/go v1.2.2 h1:UN0u60hVR+s8kYmVSITS4UbTihHzeNxlNkJKYoKaVbo=
github.com/Picovoice/pvrecorder/binding/go v1.2.2/go.mod h1:gQdvBAjoKmRxMFh8W9cVKWcqHsWvu+d13sCPVFm7dhg=
github.com/go-audio/audio v1.0.0 h1:zS9vebldgbQqktK4H0lUqWrG8P0NxCJVqcj7ZpNnwd4=
Expand Down
3 changes: 0 additions & 3 deletions demo/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ plugins {

repositories {
mavenCentral()
maven {
url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1333/'
}
}

sourceSets {
Expand Down
2 changes: 1 addition & 1 deletion demo/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"author": "Picovoice, Inc.",
"license": "Apache-2.0",
"dependencies": {
"@picovoice/porcupine-node": "file:../../binding/nodejs",
"@picovoice/porcupine-node": "~3.0.4",
"@picovoice/pvrecorder-node": "~1.2.2",
"commander": "^6.1.0",
"wavefile": "^11.0.0"
Expand Down
4 changes: 3 additions & 1 deletion demo/nodejs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
# yarn lockfile v1


"@picovoice/porcupine-node@file:../../binding/nodejs":
"@picovoice/porcupine-node@~3.0.4":
version "3.0.4"
resolved "https://registry.yarnpkg.com/@picovoice/porcupine-node/-/porcupine-node-3.0.4.tgz#a4707810c99231d50f83e802907d2921b18c4941"
integrity sha512-cWFJSzQmEH45xVgfJ3z6S1pp0+0Tuki+7sBqamNa7K/s9j0ynW9WpJBeuMztRPrpwrDoAc7A2MZdK5UJ5wIebA==

"@picovoice/pvrecorder-node@~1.2.2":
version "1.2.2"
Expand Down
2 changes: 2 additions & 0 deletions demo/rust/filedemo/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demo/rust/filedemo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ chrono = "0.4.19"
clap = "2.33.3"
hound = "3.4.0"
itertools = "0.10.1"
pv_porcupine = { path = "../../../binding/rust" }
pv_porcupine = "=3.0.3"
2 changes: 2 additions & 0 deletions demo/rust/micdemo/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demo/rust/micdemo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ clap = "2.33.3"
ctrlc = "3.1.9"
hound = "3.4.0"
itertools = "0.10.1"
pv_porcupine = { path = "../../../binding/rust" }
pv_porcupine = "=3.0.3"
pv_recorder = "=1.2.2"

0 comments on commit bb69d40

Please sign in to comment.