Switch all projects in solution to .NET 8
このコミットが含まれているのは:
1 親
4f05a70177
コミット
93abd28b72
47ファイル変更
+96
-93
検索条件に一致するファイルはありません
+16
-16
@@ -122,7 +122,7 @@ jobs:
|
||||
- name: Run ComputeSharp.D2D1.Tests.AssemblyLevelAttributes
|
||||
run: dotnet test tests\ComputeSharp.D2D1.Tests.AssemblyLevelAttributes\ComputeSharp.D2D1.Tests.AssemblyLevelAttributes.csproj -c Release -v n -l "console;verbosity=detailed"
|
||||
|
||||
# Run the D2D1 source generators tests as well (only on .NET 7, like for the DX12 ones)
|
||||
# Run the D2D1 source generators tests as well
|
||||
- name: Run ComputeSharp.D2D1.Tests.SourceGenerators
|
||||
run: dotnet test tests\ComputeSharp.D2D1.Tests.SourceGenerators\ComputeSharp.D2D1.Tests.SourceGenerators.csproj -v n -l "console;verbosity=detailed"
|
||||
|
||||
@@ -165,7 +165,7 @@ jobs:
|
||||
run: >
|
||||
$vs_path = vswhere -latest -products * -requires Microsoft.VisualStudio.Workload.ManagedDesktop -requiresAny -property installationPath;
|
||||
$vstest_path = join-path $vs_path 'Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe';
|
||||
& $vstest_path /Platform:x64 tests\ComputeSharp.D2D1.WinUI.Tests\bin\x64\Release\net7.0-windows10.0.22621.0\win10-x64\ComputeSharp.D2D1.WinUI.Tests.build.appxrecipe
|
||||
& $vstest_path /Platform:x64 tests\ComputeSharp.D2D1.WinUI.Tests\bin\x64\Release\net8.0-windows10.0.22621.0\win-x64\ComputeSharp.D2D1.WinUI.Tests.build.appxrecipe
|
||||
|
||||
# Run all the local samples to ensure they build and run with no errors
|
||||
run-samples:
|
||||
@@ -177,15 +177,15 @@ jobs:
|
||||
- name: Build and run ComputeSharp.Sample
|
||||
run: >
|
||||
dotnet build samples\ComputeSharp.Sample\ComputeSharp.Sample.csproj -c Release -r win-x64 --no-self-contained -p:Platform=x64 -v n;
|
||||
samples\ComputeSharp.Sample\bin\x64\Release\net7.0\win-x64\ComputeSharp.Sample.exe
|
||||
samples\ComputeSharp.Sample\bin\x64\Release\net8.0\win-x64\ComputeSharp.Sample.exe
|
||||
- name: Build and run ComputeSharp.Sample.FSharp
|
||||
run: >
|
||||
dotnet build samples\ComputeSharp.Sample.FSharp\ComputeSharp.Sample.FSharp.fsproj -c Release -r win-x64 --no-self-contained -p:Platform=x64 -v n;
|
||||
samples\ComputeSharp.Sample.FSharp\bin\x64\Release\net7.0\win-x64\ComputeSharp.Sample.FSharp.exe
|
||||
samples\ComputeSharp.Sample.FSharp\bin\x64\Release\net8.0\win-x64\ComputeSharp.Sample.FSharp.exe
|
||||
- name: Build and run ComputeSharp.ImageProcessing.csproj
|
||||
run: >
|
||||
dotnet build samples\ComputeSharp.ImageProcessing\ComputeSharp.ImageProcessing.csproj -c Release -r win-x64 --no-self-contained -p:Platform=x64 -v n;
|
||||
samples\ComputeSharp.ImageProcessing\bin\x64\Release\net7.0\win-x64\ComputeSharp.ImageProcessing.exe
|
||||
samples\ComputeSharp.ImageProcessing\bin\x64\Release\net8.0\win-x64\ComputeSharp.ImageProcessing.exe
|
||||
|
||||
# Run the NativeAOT samples as well
|
||||
run-samples-aot:
|
||||
@@ -215,7 +215,7 @@ jobs:
|
||||
- if: matrix.platform == 'x64'
|
||||
name: Run ComputeSharp.SwapChain.Cli (speed)
|
||||
run: >
|
||||
$process = (Start-Process samples\ComputeSharp.SwapChain.Cli\bin\Release\net7.0\win-x64\publish\computesharp.cli.exe -PassThru);
|
||||
$process = (Start-Process samples\ComputeSharp.SwapChain.Cli\bin\Release\net8.0\win-x64\publish\computesharp.cli.exe -PassThru);
|
||||
sleep -Seconds 2;
|
||||
$process.CloseMainWindow() | Out-Null;
|
||||
$process.WaitForExit();
|
||||
@@ -228,7 +228,7 @@ jobs:
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: computesharp.cli.opt-speed.exe
|
||||
path: samples\ComputeSharp.SwapChain.Cli\bin\Release\net7.0\win-x64\publish\computesharp.cli.exe
|
||||
path: samples\ComputeSharp.SwapChain.Cli\bin\Release\net8.0\win-x64\publish\computesharp.cli.exe
|
||||
if-no-files-found: error
|
||||
|
||||
# Publish the NativeAOT CLI sample (optimized for size, and reflection-free)
|
||||
@@ -244,7 +244,7 @@ jobs:
|
||||
- if: matrix.platform == 'x64'
|
||||
name: Run ComputeSharp.SwapChain.Cli (size)
|
||||
run: >
|
||||
$process = (Start-Process samples\ComputeSharp.SwapChain.Cli\bin\Release\net7.0\win-x64\publish\computesharp.cli.exe -PassThru);
|
||||
$process = (Start-Process samples\ComputeSharp.SwapChain.Cli\bin\Release\net8.0\win-x64\publish\computesharp.cli.exe -PassThru);
|
||||
sleep -Seconds 2;
|
||||
$process.CloseMainWindow() | Out-Null;
|
||||
$process.WaitForExit();
|
||||
@@ -257,21 +257,21 @@ jobs:
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: computesharp.cli.opt-size.exe
|
||||
path: samples\ComputeSharp.SwapChain.Cli\bin\Release\net7.0\win-x64\publish\computesharp.cli.exe
|
||||
path: samples\ComputeSharp.SwapChain.Cli\bin\Release\net8.0\win-x64\publish\computesharp.cli.exe
|
||||
if-no-files-found: error
|
||||
|
||||
# Also publish the Win2D sample on .NET 7 (without NativeAOT, see https://github.com/dotnet/runtime/issues/84908)
|
||||
# Also publish the Win2D sample (without NativeAOT, see https://github.com/dotnet/runtime/issues/84908)
|
||||
- if: matrix.platform == 'x64'
|
||||
name: Publish ComputeSharp.SwapChain.D2D1.Cli
|
||||
run: >
|
||||
msbuild samples\ComputeSharp.SwapChain.D2D1.Cli\ComputeSharp.SwapChain.D2D1.Cli.csproj /restore -t:publish /p:Configuration=Release
|
||||
/p:Platform=${{matrix.platform}} /p:RuntimeIdentifier=win10-${{matrix.platform}} /p:PublishSingleFile=True /p:SelfContained=True /p:PublishTrimmed=True
|
||||
/p:Platform=${{matrix.platform}} /p:RuntimeIdentifier=win-${{matrix.platform}} /p:PublishSingleFile=True /p:SelfContained=True /p:PublishTrimmed=True
|
||||
|
||||
# Just like for the DX12 sample, run it on x64 to validate it works correctly
|
||||
- if: matrix.platform == 'x64'
|
||||
name: Run ComputeSharp.SwapChain.D2D1.Cli
|
||||
run: >
|
||||
$process = (Start-Process samples\ComputeSharp.SwapChain.D2D1.Cli\bin\x64\Release\net7.0-windows10.0.22621\win10-x64\publish\computesharp.d2d1.cli.exe -PassThru);
|
||||
$process = (Start-Process samples\ComputeSharp.SwapChain.D2D1.Cli\bin\x64\Release\net8.0-windows10.0.22621\win-x64\publish\computesharp.d2d1.cli.exe -PassThru);
|
||||
sleep -Seconds 2;
|
||||
$process.CloseMainWindow() | Out-Null;
|
||||
$process.WaitForExit();
|
||||
@@ -285,7 +285,7 @@ jobs:
|
||||
$env:COMPUTESHARP_SWAPCHAIN_D2D1_PUBLISH_AOT='true';
|
||||
git clean -fdx;
|
||||
msbuild samples\ComputeSharp.SwapChain.D2D1.Cli\ComputeSharp.SwapChain.D2D1.Cli.csproj /restore -t:publish /p:Configuration=Release
|
||||
/p:Platform=${{matrix.platform}} /p:RuntimeIdentifier=win10-${{matrix.platform}}
|
||||
/p:Platform=${{matrix.platform}} /p:RuntimeIdentifier=win-${{matrix.platform}}
|
||||
|
||||
# Download the NuGet packages generated in the previous job and use them
|
||||
# to build and run the sample project referencing them. This is used as
|
||||
@@ -321,17 +321,17 @@ jobs:
|
||||
run: >
|
||||
$env:COMPUTESHARP_NUGET_TESTS_PUBLISH_AOT='true';
|
||||
dotnet publish tests\ComputeSharp.NuGet\ComputeSharp.NuGet.csproj -c Release -r win-x64 -v n;
|
||||
tests\ComputeSharp.NuGet\bin\Release\net7.0\win-x64\publish\ComputeSharp.NuGet.exe
|
||||
tests\ComputeSharp.NuGet\bin\Release\net8.0\win-x64\publish\ComputeSharp.NuGet.exe
|
||||
- name: Publish and run ComputeSharp.Dxc.NuGet with NativeAOT
|
||||
run: >
|
||||
$env:COMPUTESHARP_NUGET_TESTS_PUBLISH_AOT='true';
|
||||
dotnet publish tests\ComputeSharp.Dxc.NuGet\ComputeSharp.Dxc.NuGet.csproj -c Release -r win-x64 -v n;
|
||||
tests\ComputeSharp.Dxc.NuGet\bin\Release\net7.0\win-x64\publish\ComputeSharp.Dxc.NuGet.exe
|
||||
tests\ComputeSharp.Dxc.NuGet\bin\Release\net8.0\win-x64\publish\ComputeSharp.Dxc.NuGet.exe
|
||||
- name: Publish and run ComputeSharp.Pix.NuGet with NativeAOT
|
||||
run: >
|
||||
$env:COMPUTESHARP_NUGET_TESTS_PUBLISH_AOT='true';
|
||||
dotnet publish tests\ComputeSharp.Pix.NuGet\ComputeSharp.Pix.NuGet.csproj -c Release -r win-x64 -v n;
|
||||
tests\ComputeSharp.Pix.NuGet\bin\Release\net7.0\win-x64\publish\ComputeSharp.Pix.NuGet.exe
|
||||
tests\ComputeSharp.Pix.NuGet\bin\Release\net8.0\win-x64\publish\ComputeSharp.Pix.NuGet.exe
|
||||
|
||||
# Publish the packages to GitHub packages
|
||||
publish-nightlies-github:
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする