@@ -59,12 +59,18 @@ jobs:
59
59
with :
60
60
fetch-depth : 0
61
61
62
+ - name : Setup the latest .NET 7 SDK
63
+
64
+ with :
65
+ dotnet-version : 7.0.x
66
+
62
67
- name : Check Copyright Headers
63
68
run : |
64
69
dotnet run --configuration=Release -p:TreatWarningsAsErrors=true --project Tools/CopyrightUpdateTool
65
70
if [[ -z "$(git status --porcelain)" ]]; then
66
71
exit 0
67
72
else
73
+ git status --porcelain
68
74
exit 1
69
75
fi
70
76
@@ -124,13 +130,13 @@ jobs:
124
130
- name : Checkout
125
131
uses : actions/checkout@v3
126
132
127
- - name : Setup the latest .NET 6 SDK
133
+ - name : Setup the latest .NET 7 SDK
128
134
129
135
with :
130
- dotnet-version : 6 .0.x
136
+ dotnet-version : 7 .0.x
131
137
132
138
- name : Build
133
- run : dotnet build --configuration=Release -p:TreatWarningsAsErrors=true ${{ matrix.path }}
139
+ run : dotnet build ${{ matrix.path }} --configuration=Release -p:TreatWarningsAsErrors=true
134
140
135
141
# Run tests for all supported combinations of OS/library/framework.
136
142
test-library :
@@ -139,7 +145,7 @@ jobs:
139
145
matrix :
140
146
os : ${{ fromJson(needs.setup-os-matrix.outputs.os) }}
141
147
library : [ILGPU, ILGPU.Algorithms]
142
- framework : [netcoreapp3.1, net5.0, net6.0]
148
+ framework : [netcoreapp3.1, net5.0, net6.0, net7.0 ]
143
149
include :
144
150
- os : windows-latest
145
151
library : ILGPU
@@ -153,6 +159,14 @@ jobs:
153
159
- name : Checkout
154
160
uses : actions/checkout@v3
155
161
162
+ - name : Setup the latest .NET Core 3.1 SDK
163
+ if : matrix.framework == 'netcoreapp3.1'
164
+
165
+ env :
166
+ DOTNET_INSTALL_DIR : ${{ matrix.framework == 'cuda' && '~/.' }}
167
+ with :
168
+ dotnet-version : 3.1.x
169
+
156
170
- name : Setup the latest .NET 5 SDK
157
171
if : matrix.framework == 'net5.0'
158
172
@@ -161,28 +175,28 @@ jobs:
161
175
with :
162
176
dotnet-version : 5.0.x
163
177
164
- - name : Setup the latest .NET Core 3.1 SDK
165
- if : matrix.framework == 'netcoreapp3.1 '
178
+ - name : Setup the latest .NET 6 SDK
179
+ if : matrix.framework == 'net6.0 '
166
180
167
181
env :
168
182
DOTNET_INSTALL_DIR : ${{ matrix.framework == 'cuda' && '~/.' }}
169
183
with :
170
- dotnet-version : 3.1 .x
184
+ dotnet-version : 6.0 .x
171
185
172
- - name : Setup the latest .NET 6 SDK
186
+ - name : Setup the latest .NET 7 SDK
173
187
174
188
env :
175
189
DOTNET_INSTALL_DIR : ${{ matrix.framework == 'cuda' && '~/.' }}
176
190
with :
177
- dotnet-version : 6 .0.x
191
+ dotnet-version : 7 .0.x
178
192
179
193
- name : Set test flavor
180
194
id : test-flavor
181
195
shell : bash
182
196
run : echo "flavor=$([[ "${{ matrix.os }}" == cuda-* ]] && echo "Cuda" || echo "CPU")" >> $GITHUB_OUTPUT
183
197
184
198
- name : Build and test
185
- run : dotnet test -- configuration=Release --framework=${{ matrix.framework }} -p:TreatWarningsAsErrors=true --logger GitHubActions Src/${{ matrix.library }}.Tests.${{ steps.test-flavor.outputs.flavor }}
199
+ run : dotnet test Src/${{ matrix.library }}.Tests.${{ steps.test-flavor.outputs.flavor }} -- configuration=Release --framework=${{ matrix.framework }} -p:TreatWarningsAsErrors=true --logger GitHubActions
186
200
env :
187
201
ILGPU_CLEAN_TESTS : ${{ github.event_name == 'schedule' || (github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))) }}
188
202
@@ -233,10 +247,10 @@ jobs:
233
247
- name : Checkout
234
248
uses : actions/checkout@v3
235
249
236
- - name : Setup the latest .NET 6 SDK
250
+ - name : Setup the latest .NET 7 SDK
237
251
238
252
with :
239
- dotnet-version : 6 .0.x
253
+ dotnet-version : 7 .0.x
240
254
241
255
- name : Create NuGet packages
242
256
run : |
@@ -246,7 +260,7 @@ jobs:
246
260
$params = "--version-suffix", $suffix
247
261
}
248
262
249
- dotnet pack --configuration=Release @params Src
263
+ dotnet pack Src --configuration=Release @params
250
264
251
265
- name : Fix NuGet Symbols Packages
252
266
run : .github/workflows/Scripts/FixNugetSymbolPackages.ps1 -version "${{ needs.check-version.outputs.version }}"
@@ -267,10 +281,10 @@ jobs:
267
281
- name : Checkout
268
282
uses : actions/checkout@v3
269
283
270
- - name : Setup the latest .NET 6 SDK
284
+ - name : Setup the latest .NET 7 SDK
271
285
272
286
with :
273
- dotnet-version : 6 .0.x
287
+ dotnet-version : 7 .0.x
274
288
275
289
# Change the ILGPU project references to NuGet package references
276
290
- name : Update sample references
0 commit comments