Skip to content

Commit dadb18b

Browse files
committed
Update CI script to run samples with .NET 9
1 parent ba18978 commit dadb18b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/dotnet.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,15 @@ jobs:
192192
- name: Build and run ComputeSharp.Sample
193193
run: >
194194
dotnet build samples\ComputeSharp.Sample\ComputeSharp.Sample.csproj -c Release -r win-x64 --no-self-contained -p:Platform=x64 -v n;
195-
samples\ComputeSharp.Sample\bin\x64\Release\net8.0\win-x64\ComputeSharp.Sample.exe
195+
samples\ComputeSharp.Sample\bin\x64\Release\net9.0\win-x64\ComputeSharp.Sample.exe
196196
- name: Build and run ComputeSharp.Sample.FSharp
197197
run: >
198198
dotnet build samples\ComputeSharp.Sample.FSharp\ComputeSharp.Sample.FSharp.fsproj -c Release -r win-x64 --no-self-contained -p:Platform=x64 -v n;
199-
samples\ComputeSharp.Sample.FSharp\bin\x64\Release\net8.0\win-x64\ComputeSharp.Sample.FSharp.exe
199+
samples\ComputeSharp.Sample.FSharp\bin\x64\Release\net9.0\win-x64\ComputeSharp.Sample.FSharp.exe
200200
- name: Build and run ComputeSharp.ImageProcessing.csproj
201201
run: >
202202
dotnet build samples\ComputeSharp.ImageProcessing\ComputeSharp.ImageProcessing.csproj -c Release -r win-x64 --no-self-contained -p:Platform=x64 -v n;
203-
samples\ComputeSharp.ImageProcessing\bin\x64\Release\net8.0\win-x64\ComputeSharp.ImageProcessing.exe
203+
samples\ComputeSharp.ImageProcessing\bin\x64\Release\net9.0\win-x64\ComputeSharp.ImageProcessing.exe
204204
205205
# Run the NativeAOT samples as well
206206
run-samples-aot:
@@ -230,7 +230,7 @@ jobs:
230230
- if: matrix.platform == 'x64'
231231
name: Run ComputeSharp.SwapChain.Cli (speed)
232232
run: >
233-
$process = (Start-Process samples\ComputeSharp.SwapChain.Cli\bin\Release\net8.0\win-x64\publish\computesharp.cli.exe -PassThru);
233+
$process = (Start-Process samples\ComputeSharp.SwapChain.Cli\bin\Release\net9.0\win-x64\publish\computesharp.cli.exe -PassThru);
234234
sleep -Seconds 2;
235235
try
236236
{
@@ -246,7 +246,7 @@ jobs:
246246
uses: actions/upload-artifact@v4
247247
with:
248248
name: computesharp.cli.opt-speed.exe
249-
path: samples\ComputeSharp.SwapChain.Cli\bin\Release\net8.0\win-x64\publish\computesharp.cli.exe
249+
path: samples\ComputeSharp.SwapChain.Cli\bin\Release\net9.0\win-x64\publish\computesharp.cli.exe
250250
if-no-files-found: error
251251

252252
# Publish the NativeAOT CLI sample (optimized for size, and reflection-free)
@@ -262,7 +262,7 @@ jobs:
262262
- if: matrix.platform == 'x64'
263263
name: Run ComputeSharp.SwapChain.Cli (size)
264264
run: >
265-
$process = (Start-Process samples\ComputeSharp.SwapChain.Cli\bin\Release\net8.0\win-x64\publish\computesharp.cli.exe -PassThru);
265+
$process = (Start-Process samples\ComputeSharp.SwapChain.Cli\bin\Release\net9.0\win-x64\publish\computesharp.cli.exe -PassThru);
266266
sleep -Seconds 2;
267267
try
268268
{
@@ -278,7 +278,7 @@ jobs:
278278
uses: actions/upload-artifact@v4
279279
with:
280280
name: computesharp.cli.opt-size.exe
281-
path: samples\ComputeSharp.SwapChain.Cli\bin\Release\net8.0\win-x64\publish\computesharp.cli.exe
281+
path: samples\ComputeSharp.SwapChain.Cli\bin\Release\net9.0\win-x64\publish\computesharp.cli.exe
282282
if-no-files-found: error
283283

284284
# Also publish the Win2D sample (with R2R)
@@ -294,7 +294,7 @@ jobs:
294294
- if: matrix.platform == 'x64'
295295
name: Run ComputeSharp.SwapChain.D2D1.Cli (R2R)
296296
run: >
297-
$process = (Start-Process samples\ComputeSharp.SwapChain.D2D1.Cli\bin\x64\Release\net8.0-windows10.0.22621\win-x64\publish\computesharp.d2d1.cli.exe -PassThru);
297+
$process = (Start-Process samples\ComputeSharp.SwapChain.D2D1.Cli\bin\x64\Release\net9.0-windows10.0.22621\win-x64\publish\computesharp.d2d1.cli.exe -PassThru);
298298
sleep -Seconds 2;
299299
try
300300
{
@@ -317,7 +317,7 @@ jobs:
317317
- if: matrix.platform == 'x64'
318318
name: Run ComputeSharp.SwapChain.D2D1.Cli (NativeAOT)
319319
run: >
320-
$process = (Start-Process samples\ComputeSharp.SwapChain.D2D1.Cli\bin\x64\Release\net8.0-windows10.0.22621\win-x64\publish\computesharp.d2d1.cli.exe -PassThru);
320+
$process = (Start-Process samples\ComputeSharp.SwapChain.D2D1.Cli\bin\x64\Release\net9.0-windows10.0.22621\win-x64\publish\computesharp.d2d1.cli.exe -PassThru);
321321
sleep -Seconds 2;
322322
try
323323
{

0 commit comments

Comments
 (0)