Skip to content

Commit c066182

Browse files
authored
v4.0 (#851)
1 parent fd032c4 commit c066182

File tree

548 files changed

+103702
-9284
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

548 files changed

+103702
-9284
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ binding/java/test/** linguist-detectable=false
1313
binding/node/test/** linguist-detectable=false
1414
binding/react/** linguist-detectable=false
1515
binding/react-native/** linguist-detectable=false
16-
binding/unity/** linguist-detectable=false
1716
binding/web/** linguist-detectable=false
1817

1918
*.py linguist-detectable=true

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ body:
3333
- Python
3434
- React Native
3535
- React
36-
- Unity
3736
- Web
3837
validations:
3938
required: true

.github/workflows/android-browserstack.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ jobs:
5050
- name: Inject AccessKey
5151
run: echo pvTestingAccessKey="${{secrets.PV_VALID_ACCESS_KEY}}" >> local.properties
5252

53+
- name: Inject Device
54+
run: echo pvTestingDevice="best" >> local.properties
55+
5356
- name: Inject Android keystore variables
5457
run: |
5558
echo storePassword="${{secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD}}" >> local.properties
@@ -105,6 +108,9 @@ jobs:
105108
- name: Inject AccessKey
106109
run: echo pvTestingAccessKey="${{secrets.PV_VALID_ACCESS_KEY}}" >> local.properties
107110

111+
- name: Inject Device
112+
run: echo pvTestingDevice="best" >> local.properties
113+
108114
- name: Inject Android keystore variables
109115
run: |
110116
echo storePassword="${{secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD}}" >> local.properties

.github/workflows/android-demos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
steps:
4040
- uses: actions/checkout@v3
41-
41+
4242
- name: Override gradle settings
4343
run: sed -i "s/com.android.tools.build:gradle:[0-9]*\.[0-9]*\.[0-9]*/com.android.tools.build:gradle:${{ matrix.agp-version }}/g" build.gradle
4444

.github/workflows/android-perf.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ jobs:
5353
- name: Inject AccessKey
5454
run: echo pvTestingAccessKey="${{secrets.PV_VALID_ACCESS_KEY}}" >> local.properties
5555

56+
- name: Inject Device
57+
run: echo pvTestingDevice="best" >> local.properties
58+
5659
- name: Inject Android keystore variables
5760
run: |
5861
echo storePassword="${{secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD}}" >> local.properties

.github/workflows/c-demos.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ jobs:
108108

109109
strategy:
110110
matrix:
111+
device: [ cpu, cpu:1 ]
111112
os: [ubuntu-latest, windows-latest, macos-latest]
112113
include:
113114
- os: ubuntu-latest
@@ -143,13 +144,14 @@ jobs:
143144
run: pip install -r test/requirements.txt
144145

145146
- name: Test
146-
run: python test/test_rhino_c.py ${{secrets.PV_VALID_ACCESS_KEY}} ${{ matrix.platform }} ${{ matrix.arch }}
147+
run: python test/test_rhino_c.py ${{secrets.PV_VALID_ACCESS_KEY}} ${{ matrix.device }} ${{ matrix.platform }} ${{ matrix.arch }}
147148

148149
build-filedemo-self-hosted:
149150
runs-on: ${{ matrix.machine }}
150151

151152
strategy:
152153
matrix:
154+
device: [ best ]
153155
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, pv-windows-arm64]
154156
include:
155157
- machine: rpi3-32
@@ -182,6 +184,24 @@ jobs:
182184
arch: arm64
183185
make_file: "MinGW Makefiles"
184186
pv_recorder_platform: "windows-arm64"
187+
- device: gpu
188+
machine: pv-linux
189+
platform: linux
190+
arch: x86_64
191+
make_file: "Unix Makefiles"
192+
pv_recorder_platform: "linux"
193+
- device: gpu
194+
machine: pv-windows
195+
platform: windows
196+
arch: amd64
197+
make_file: "MinGW Makefiles"
198+
pv_recorder_platform: "windows-amd64"
199+
- device: gpu
200+
machine: pv-ios
201+
platform: mac
202+
arch: arm64
203+
make_file: "Unix Makefiles"
204+
pv_recorder_platform: "mac-arm64"
185205

186206
steps:
187207
- uses: actions/checkout@v3
@@ -198,4 +218,4 @@ jobs:
198218
run: pip3 install -r test/requirements.txt
199219

200220
- name: Test
201-
run: python3 test/test_rhino_c.py ${{secrets.PV_VALID_ACCESS_KEY}} ${{ matrix.platform }} ${{ matrix.arch }}
221+
run: python3 test/test_rhino_c.py ${{secrets.PV_VALID_ACCESS_KEY}} ${{ matrix.device }} ${{ matrix.platform }} ${{ matrix.arch }}

.github/workflows/dotnet-demos.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525

2626
strategy:
2727
matrix:
28+
device: [cpu, cpu:1]
2829
os: [ubuntu-latest, windows-latest, macos-latest]
2930
include:
3031
- os: ubuntu-latest
@@ -52,15 +53,25 @@ jobs:
5253
run: dotnet build -c FileDemo.Release
5354

5455
- name: Run Dotnet filedemo
55-
run: dotnet run -c FileDemo.Release -- --input_audio_path ../../../resources/audio_samples/test_within_context.wav --access_key ${{secrets.PV_VALID_ACCESS_KEY}} --context_path ../../../resources/contexts/${{ matrix.platform }}/coffee_maker_${{ matrix.platform }}.rhn
56+
run: dotnet run -c FileDemo.Release -- --input_audio_path ../../../resources/audio_samples/test_within_context.wav --access_key ${{secrets.PV_VALID_ACCESS_KEY}} --device ${{ matrix.device }} --context_path ../../../resources/contexts/${{ matrix.platform }}/coffee_maker_${{ matrix.platform }}.rhn
5657

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

6061
strategy:
6162
matrix:
6263
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, pv-windows-arm64]
64+
device: [best]
6365
include:
66+
- device: gpu
67+
machine: pv-linux
68+
platform: linux
69+
- device: gpu
70+
machine: pv-windows
71+
platform: windows
72+
- device: gpu
73+
machine: pv-ios
74+
platform: mac
6475
- machine: rpi3-32
6576
platform: raspberry-pi
6677
- machine: rpi3-64
@@ -87,4 +98,4 @@ jobs:
8798
run: dotnet build -c FileDemo.Release
8899

89100
- name: Run Dotnet filedemo
90-
run: dotnet run -c FileDemo.Release -- --input_audio_path ../../../resources/audio_samples/test_within_context.wav --access_key ${{secrets.PV_VALID_ACCESS_KEY}} --context_path ../../../resources/contexts/${{ matrix.platform }}/coffee_maker_${{ matrix.platform }}.rhn
101+
run: dotnet run -c FileDemo.Release -- --input_audio_path ../../../resources/audio_samples/test_within_context.wav --access_key ${{secrets.PV_VALID_ACCESS_KEY}} --device ${{ matrix.device }} --context_path ../../../resources/contexts/${{ matrix.platform }}/coffee_maker_${{ matrix.platform }}.rhn

.github/workflows/dotnet.yml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -49,48 +49,29 @@ jobs:
4949

5050
strategy:
5151
matrix:
52-
os: [ubuntu-latest, macos-latest, macos-13, windows-latest]
53-
dotnet-version: [2.1.x, 3.0.x, 3.1.x, 5.0.x, 6.0.x, 8.0.x]
52+
device: [cpu, cpu:1]
53+
os: [ubuntu-latest, macos-latest, macos-15-intel, windows-latest]
54+
dotnet-version: [2.1.x, 3.1.x, 6.0.x, 8.0.x, 10.0.x]
5455
include:
5556
- dotnet-version: 2.1.x
56-
binding-framework: netstandard2.0
5757
test-framework: netcoreapp2.1
58-
- dotnet-version: 3.0.x
59-
binding-framework: netcoreapp3.0
60-
test-framework: netcoreapp3.0
6158
- dotnet-version: 3.1.x
62-
binding-framework: netcoreapp3.0
6359
test-framework: netcoreapp3.1
64-
- dotnet-version: 5.0.x
65-
binding-framework: netcoreapp3.0
66-
test-framework: net5.0
6760
- dotnet-version: 6.0.x
68-
binding-framework: net6.0
6961
test-framework: net6.0
7062
- dotnet-version: 8.0.x
71-
binding-framework: net8.0
7263
test-framework: net8.0
64+
- dotnet-version: 10.0.x
65+
test-framework: net10.0
7366
exclude:
7467
- os: ubuntu-latest
7568
dotnet-version: 2.1.x
76-
- os: ubuntu-latest
77-
dotnet-version: 3.0.x
7869
- os: ubuntu-latest
7970
dotnet-version: 3.1.x
80-
- os: ubuntu-latest
81-
dotnet-version: 5.0.x
8271
- os: macos-latest
8372
dotnet-version: 2.1.x
84-
- os: macos-latest
85-
dotnet-version: 3.0.x
8673
- os: macos-latest
8774
dotnet-version: 3.1.x
88-
- os: macos-latest
89-
dotnet-version: 5.0.x
90-
- os: macos-latest
91-
dotnet-version: 6.0.x
92-
- os: macos-13
93-
dotnet-version: 8.0.x
9475

9576
steps:
9677
- uses: actions/checkout@v3
@@ -100,17 +81,25 @@ jobs:
10081
with:
10182
dotnet-version: ${{ matrix.dotnet-version }}
10283

103-
- name: Set up .NET (8)
104-
if: ${{ matrix.os == 'ubuntu-latest' && matrix.dotnet-version == '6.0.x' }}
105-
uses: actions/setup-dotnet@v3
106-
with:
107-
dotnet-version: 8.0.x
108-
10984
- name: Build binding
110-
run: dotnet build Rhino/Rhino.csproj --framework ${{ matrix.binding-framework }}
85+
run: dotnet build Rhino/Rhino.csproj
86+
87+
- name: Set test framework version (linux)
88+
if: ${{ matrix.os == 'ubuntu-latest' }}
89+
run: sed -i 's/net6.0/${{matrix.test-framework}}/g' RhinoTest/RhinoTest.csproj
90+
91+
- name: Set test framework version (macos)
92+
if: ${{ matrix.os == 'macos-latest' || matrix.os == 'macos-15-intel' }}
93+
run: sed -i '.bak' 's/net6.0/${{matrix.test-framework}}/g' RhinoTest/RhinoTest.csproj
94+
95+
- name: Set test framework version (windows)
96+
if: ${{ matrix.os == 'windows-latest' }}
97+
run: (Get-Content -Path "RhinoTest/RhinoTest.csproj") -replace "net6.0", "${{matrix.test-framework}}" | Set-Content -Path "RhinoTest/RhinoTest.csproj"
11198

11299
- name: Test
113-
run: dotnet test --framework ${{ matrix.test-framework }} -v n
100+
run: dotnet test -v n
101+
env:
102+
DEVICE: ${{ matrix.device }}
114103

115104
build-self-hosted:
116105
runs-on: ${{ matrix.machine }}
@@ -120,12 +109,23 @@ jobs:
120109
strategy:
121110
matrix:
122111
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, pv-windows-arm64]
112+
device: [best]
113+
include:
114+
- device: gpu
115+
machine: pv-linux
116+
- device: gpu
117+
machine: pv-windows
118+
- device: gpu
119+
machine: pv-ios
123120

124121
steps:
125122
- uses: actions/checkout@v3
126123

127124
- name: Build binding
128-
run: dotnet build Rhino/Rhino.csproj --framework net8.0
125+
run: dotnet build Rhino/Rhino.csproj
129126

130127
- name: Test
131-
run: dotnet test --framework net8.0 -v n
128+
run: dotnet test -v n
129+
env:
130+
DEVICE: ${{ matrix.device }}
131+
DOTNET_ROLL_FORWARD: LatestMajor

.github/workflows/flutter.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,14 @@ jobs:
3838
- name: Copy test_resources
3939
run: ./copy_test_resources.sh
4040

41-
- name: Inject AppID
41+
- name: Inject AccessKey
4242
run: sed -i 's:{TESTING_ACCESS_KEY_HERE}:${{secrets.PV_VALID_ACCESS_KEY}}:'
4343
integration_test/app_test.dart
4444

45+
- name: Inject device
46+
run: sed -i 's:{TESTING_DEVICE_HERE}:cpu\:1:'
47+
integration_test/app_test.dart
48+
4549
- name: Install Flutter 3.35.0
4650
run: |
4751
fvm install 3.35.0
@@ -66,10 +70,14 @@ jobs:
6670
- name: Copy test_resources
6771
run: ./copy_test_resources.sh
6872

69-
- name: Inject AppID
73+
- name: Inject AccessKey
7074
run: sed -i '.bak' 's:{TESTING_ACCESS_KEY_HERE}:${{secrets.PV_VALID_ACCESS_KEY}}:'
7175
integration_test/app_test.dart
7276

77+
- name: Inject device
78+
run: sed -i '.bak' 's:{TESTING_DEVICE_HERE}:cpu\:1:'
79+
integration_test/app_test.dart
80+
7381
- name: Install Flutter 3.35.0
7482
run: |
7583
fvm install 3.35.0

.github/workflows/ios-browserstack.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ jobs:
4747
run: sed -i '.bak' 's:{TESTING_ACCESS_KEY_HERE}:${{secrets.PV_VALID_ACCESS_KEY}}:'
4848
RhinoAppTestUITests/BaseTest.swift
4949

50+
- name: Inject Device
51+
run: sed -i '.bak' 's:{TESTING_DEVICE_HERE}:cpu\:1:'
52+
RhinoAppTestUITests/BaseTest.swift
53+
5054
- name: XCode Build
5155
run: xcrun xcodebuild build-for-testing
5256
-configuration Debug

0 commit comments

Comments
 (0)