From 148cf98914ae7bd57f8ef269f629cd167d9464bf Mon Sep 17 00:00:00 2001 From: Ian Date: Thu, 1 Feb 2024 17:26:07 -0800 Subject: [PATCH 1/2] go --- .github/workflows/go-demos.yml | 38 +++++++++++++--------------------- .github/workflows/go.yml | 2 +- sdk/go/go.mod | 4 ++-- sdk/go/go.sum | 8 +++---- sdk/go/picovoice_test.go | 2 +- 5 files changed, 22 insertions(+), 32 deletions(-) diff --git a/.github/workflows/go-demos.yml b/.github/workflows/go-demos.yml index 90af7ecdf..012b547be 100644 --- a/.github/workflows/go-demos.yml +++ b/.github/workflows/go-demos.yml @@ -20,17 +20,16 @@ defaults: working-directory: demo/go jobs: - build-micdemo: - runs-on: ubuntu-latest + build-github-hosted: + runs-on: ${{ matrix.os }} strategy: matrix: + os: [ ubuntu-latest, windows-latest, macos-latest ] 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 @@ -38,38 +37,29 @@ jobs: with: version: 11.2.0 - - name: Setup go + - name: Set up go uses: actions/setup-go@v4 with: go-version: ${{ matrix.go }} - name: Build micdemo - run: go build - working-directory: demo/go/micdemo + run: go build micdemo/picovoice_mic_demo.go + + - name: Build filedemo + run: go build filedemo/picovoice_file_demo.go - build-filedemo: - runs-on: ubuntu-latest + build-self-hosted: + runs-on: ${{ matrix.machine }} strategy: matrix: - go: [ '1.16', '1.17', '1.18', '1.19', '1.20', 'stable' ] + machine: [ rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, jetson ] 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: - go-version: ${{ matrix.go }} + - name: Build micdemo + run: go build micdemo/picovoice_mic_demo.go - name: Build filedemo - run: go build - working-directory: demo/go/filedemo + run: go build filedemo/picovoice_file_demo.go diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 56a012d31..acc30d47e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -67,7 +67,7 @@ jobs: strategy: matrix: - machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson, beaglebone] + machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, jetson, beaglebone] steps: - uses: actions/checkout@v3 diff --git a/sdk/go/go.mod b/sdk/go/go.mod index da4479b63..78ae699b6 100644 --- a/sdk/go/go.mod +++ b/sdk/go/go.mod @@ -3,6 +3,6 @@ module github.com/Picovoice/picovoice/sdk/go/v3 go 1.16 require ( - github.com/Picovoice/porcupine/binding/go/v3 v3.0.1 - github.com/Picovoice/rhino/binding/go/v3 v3.0.1 + github.com/Picovoice/porcupine/binding/go/v3 v3.0.2 + github.com/Picovoice/rhino/binding/go/v3 v3.0.2 ) diff --git a/sdk/go/go.sum b/sdk/go/go.sum index d43a7cd85..d54929c22 100644 --- a/sdk/go/go.sum +++ b/sdk/go/go.sum @@ -1,4 +1,4 @@ -github.com/Picovoice/porcupine/binding/go/v3 v3.0.1 h1:QGLeCljdU5ZAvbYuTD4QPk6E65TRTsS+4ixfZguUVxc= -github.com/Picovoice/porcupine/binding/go/v3 v3.0.1/go.mod h1:6Pg/746wMh0GDNEWqi56GuTsTk7WLeVgTB0ZhyERs8U= -github.com/Picovoice/rhino/binding/go/v3 v3.0.1 h1:QHoEsIXxJOHFtboUKvLa2DVgsyLsUeO7knZGFgh6Dbo= -github.com/Picovoice/rhino/binding/go/v3 v3.0.1/go.mod h1:CKikI/Tv7hIyj0aOnAKaBIGPzWfx/0SUayYFDnPCmmI= +github.com/Picovoice/porcupine/binding/go/v3 v3.0.2 h1:mgvA50lIybYhfCMCwXoPvqjuyAKBppT8ZGSn/7F4ank= +github.com/Picovoice/porcupine/binding/go/v3 v3.0.2/go.mod h1:6Pg/746wMh0GDNEWqi56GuTsTk7WLeVgTB0ZhyERs8U= +github.com/Picovoice/rhino/binding/go/v3 v3.0.2 h1:z3YSRDc2zGJNWkOsqo7aEdW039+VmrqZ8axZ4uOWQDA= +github.com/Picovoice/rhino/binding/go/v3 v3.0.2/go.mod h1:CKikI/Tv7hIyj0aOnAKaBIGPzWfx/0SUayYFDnPCmmI= diff --git a/sdk/go/picovoice_test.go b/sdk/go/picovoice_test.go index 46218005d..afd9db26d 100644 --- a/sdk/go/picovoice_test.go +++ b/sdk/go/picovoice_test.go @@ -302,7 +302,7 @@ func getLinuxDetails() string { } switch cpuPart { - case "0xb76", "0xc07", "0xd03", "0xd08": + case "0xb76", "0xc07", "0xd03", "0xd08", "0xd0b": return "raspberry-pi" case "0xd07": return "jetson" From f3a693e127bb719d502cfd7e3fa8237ceb0787c8 Mon Sep 17 00:00:00 2001 From: Ian Date: Thu, 1 Feb 2024 17:28:34 -0800 Subject: [PATCH 2/2] release --- demo/go/go.mod | 6 +++--- demo/go/go.sum | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/demo/go/go.mod b/demo/go/go.mod index 0a1f1dbe5..02e336c24 100644 --- a/demo/go/go.mod +++ b/demo/go/go.mod @@ -3,9 +3,9 @@ module picovoicedemo go 1.16 require ( - github.com/Picovoice/picovoice/sdk/go/v3 v3.0.1 - github.com/Picovoice/pvrecorder/binding/go v1.2.1 - github.com/Picovoice/rhino/binding/go/v3 v3.0.1 + github.com/Picovoice/picovoice/sdk/go/v3 v3.0.2 + github.com/Picovoice/pvrecorder/binding/go v1.2.2 + github.com/Picovoice/rhino/binding/go/v3 v3.0.2 github.com/go-audio/audio v1.0.0 github.com/go-audio/wav v1.0.0 ) diff --git a/demo/go/go.sum b/demo/go/go.sum index ace343003..de4404730 100644 --- a/demo/go/go.sum +++ b/demo/go/go.sum @@ -1,11 +1,11 @@ -github.com/Picovoice/picovoice/sdk/go/v3 v3.0.1 h1:fb4dhkiSJ0oHO9gFo1gjJOK3e5IwnulKYsi7iq/F3OI= -github.com/Picovoice/picovoice/sdk/go/v3 v3.0.1/go.mod h1:a87x08Q7YAC4B9XCBmaudeVHCk+uponDS0jGnS3HuQ0= -github.com/Picovoice/porcupine/binding/go/v3 v3.0.1 h1:QGLeCljdU5ZAvbYuTD4QPk6E65TRTsS+4ixfZguUVxc= -github.com/Picovoice/porcupine/binding/go/v3 v3.0.1/go.mod h1:6Pg/746wMh0GDNEWqi56GuTsTk7WLeVgTB0ZhyERs8U= -github.com/Picovoice/pvrecorder/binding/go v1.2.1 h1:p99fkYMFbTS4g4WwbhSPkT9PHvlEoVYGaNoqxCITiEo= -github.com/Picovoice/pvrecorder/binding/go v1.2.1/go.mod h1:gQdvBAjoKmRxMFh8W9cVKWcqHsWvu+d13sCPVFm7dhg= -github.com/Picovoice/rhino/binding/go/v3 v3.0.1 h1:QHoEsIXxJOHFtboUKvLa2DVgsyLsUeO7knZGFgh6Dbo= -github.com/Picovoice/rhino/binding/go/v3 v3.0.1/go.mod h1:CKikI/Tv7hIyj0aOnAKaBIGPzWfx/0SUayYFDnPCmmI= +github.com/Picovoice/picovoice/sdk/go/v3 v3.0.2 h1:pyAfHvqPNJvj6d6sqv2qnSe5yxtkOp0ml3VIuGr/zjM= +github.com/Picovoice/picovoice/sdk/go/v3 v3.0.2/go.mod h1:eZULulF8trfROGO3nnWapKyIfwXhn86LMYG1hWpEIlY= +github.com/Picovoice/porcupine/binding/go/v3 v3.0.2 h1:mgvA50lIybYhfCMCwXoPvqjuyAKBppT8ZGSn/7F4ank= +github.com/Picovoice/porcupine/binding/go/v3 v3.0.2/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/Picovoice/rhino/binding/go/v3 v3.0.2 h1:z3YSRDc2zGJNWkOsqo7aEdW039+VmrqZ8axZ4uOWQDA= +github.com/Picovoice/rhino/binding/go/v3 v3.0.2/go.mod h1:CKikI/Tv7hIyj0aOnAKaBIGPzWfx/0SUayYFDnPCmmI= github.com/go-audio/audio v1.0.0 h1:zS9vebldgbQqktK4H0lUqWrG8P0NxCJVqcj7ZpNnwd4= github.com/go-audio/audio v1.0.0/go.mod h1:6uAu0+H2lHkwdGsAY+j2wHPNPpPoeg5AaEFh9FlA+Zs= github.com/go-audio/riff v1.0.0 h1:d8iCGbDvox9BfLagY94fBynxSPHO80LmZCaOsmKxokA=