9
9
- ' sdk/dotnet/**'
10
10
- ' !sdk/dotnet/README.md'
11
11
- ' resources/audio_samples/**'
12
+ - ' resources/.test/**'
12
13
- ' resources/porcupine'
13
14
- ' resources/rhino'
14
- - ' resources/test/**'
15
15
pull_request :
16
- branches : [ master ]
16
+ branches : [ master, 'v[0-9]+.[0-9]+' ]
17
17
paths :
18
18
- ' .github/workflows/dotnet.yml'
19
19
- ' sdk/dotnet/**'
20
20
- ' !sdk/dotnet/README.md'
21
+ - ' resources/.test/**'
21
22
- ' resources/audio_samples/**'
22
23
- ' resources/porcupine'
23
24
- ' resources/rhino'
24
- - ' resources/test/**'
25
25
26
26
defaults :
27
27
run :
@@ -36,26 +36,40 @@ jobs:
36
36
strategy :
37
37
matrix :
38
38
os : [ubuntu-latest, macos-latest, windows-latest]
39
+ dotnet-version : [2.0.x, 3.0.x, 3.1.x, 5.0.x, 6.0.x]
40
+ include :
41
+ - dotnet-version : 2.0.x
42
+ binding-framework : netstandard2.0
43
+ test-framework : netcoreapp2.0
44
+ - dotnet-version : 3.0.x
45
+ binding-framework : netcoreapp3.0
46
+ test-framework : netcoreapp3.0
47
+ - dotnet-version : 3.1.x
48
+ binding-framework : netcoreapp3.0
49
+ test-framework : netcoreapp3.1
50
+ - dotnet-version : 5.0.x
51
+ binding-framework : netcoreapp3.0
52
+ test-framework : net5.0
53
+ - dotnet-version : 6.0.x
54
+ binding-framework : net6.0
55
+ test-framework : net6.0
39
56
40
57
steps :
41
58
- name : Checkout repository and submodules
42
- uses : actions/checkout@v2
59
+ uses : actions/checkout@v3
43
60
with :
44
61
submodules : recursive
45
62
46
- - name : Setup .NET 6.0
47
- uses : actions/setup-dotnet@v1
63
+ - name : Setup .NET
64
+ uses : actions/setup-dotnet@v3
48
65
with :
49
- dotnet-version : 6.0.x
50
-
51
- - name : Restore dependencies
52
- run : dotnet restore
66
+ dotnet-version : ${{ matrix.dotnet-version }}
53
67
54
- - name : Build
55
- run : dotnet build --no-restore
68
+ - name : Build binding
69
+ run : dotnet build Picovoice/Picovoice.csproj --framework ${{ matrix.binding-framework }}
56
70
57
71
- name : Test
58
- run : dotnet test
72
+ run : dotnet test --framework ${{ matrix.test-framework }} -v d
59
73
60
74
build-self-hosted :
61
75
runs-on : ${{ matrix.machine }}
@@ -68,15 +82,12 @@ jobs:
68
82
69
83
steps :
70
84
- name : Checkout repository and submodules
71
- uses : actions/checkout@v2
85
+ uses : actions/checkout@v3
72
86
with :
73
87
submodules : recursive
74
88
75
- - name : Restore dependencies
76
- run : dotnet restore
77
-
78
- - name : Build
79
- run : dotnet build --no-restore
89
+ - name : Build binding
90
+ run : dotnet build Picovoice/Picovoice.csproj --framework net6.0
80
91
81
92
- name : Test
82
- run : dotnet test
93
+ run : dotnet test --framework net6.0 -v d
0 commit comments