Merge pull request #439 from Sergio0694/dev/add-net7-tests
Add .NET 7 and NativeAOT NuGet tests to CI
このコミットが含まれているのは:
4ファイル変更
+42
-7
検索条件に一致するファイルはありません
@@ -144,7 +144,7 @@ jobs:
|
||||
needs: [build-packages]
|
||||
strategy:
|
||||
matrix:
|
||||
framework: [net6.0, netcoreapp3.1, net472]
|
||||
framework: [net7.0, net6.0, netcoreapp3.1, net472]
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Git checkout
|
||||
@@ -170,6 +170,23 @@ jobs:
|
||||
- if: matrix.framework == 'net6.0'
|
||||
name: Run ComputeSharp.Tests.NativeLibrariesResolver
|
||||
run: dotnet test tests\ComputeSharp.Tests.NativeLibrariesResolver\ComputeSharp.Tests.NativeLibrariesResolver.csproj -v n -l "console;verbosity=detailed"
|
||||
|
||||
# If on .NET 7, also run the NativeAOT publishing tests
|
||||
- if: matrix.framework == 'net7.0'
|
||||
name: Publish and run ComputeSharp.NuGet with NativeAOT
|
||||
run: >
|
||||
dotnet publish tests\ComputeSharp.NuGet\ComputeSharp.NuGet.csproj -c Release -f net7.0 -r win-x64 -v n;
|
||||
tests\ComputeSharp.NuGet\bin\Release\net7.0\win-x64\publish\ComputeSharp.NuGet.exe
|
||||
- if: matrix.framework == 'net7.0'
|
||||
name: Publish and run ComputeSharp.Dynamic.NuGet with NativeAOT
|
||||
run: >
|
||||
dotnet publish tests\ComputeSharp.Dynamic.NuGet\ComputeSharp.Dynamic.NuGet.csproj -c Release -f net7.0 -r win-x64 -v n;
|
||||
tests\ComputeSharp.Dynamic.NuGet\bin\Release\net7.0\win-x64\publish\ComputeSharp.Dynamic.NuGet.exe
|
||||
- if: matrix.framework == 'net7.0'
|
||||
name: Publish and run ComputeSharp.Pix.NuGet with NativeAOT
|
||||
run: >
|
||||
dotnet publish tests\ComputeSharp.Pix.NuGet\ComputeSharp.Pix.NuGet.csproj -c Release -f net7.0 -r win-x64 -v n;
|
||||
tests\ComputeSharp.Pix.NuGet\bin\Release\net7.0\win-x64\publish\ComputeSharp.Pix.NuGet.exe
|
||||
|
||||
# Publish the packages to GitHub packages
|
||||
publish-nightlies-github:
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFrameworks>net472;netcoreapp3.1;net6.0</TargetFrameworks>
|
||||
<TargetFrameworks>net472;netcoreapp3.1;net6.0;net7.0</TargetFrameworks>
|
||||
<Platforms>AnyCPU;x64;ARM64</Platforms>
|
||||
<RestoreSources>
|
||||
https://api.nuget.org/v3/index.json;
|
||||
@@ -10,6 +10,12 @@
|
||||
</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(TargetFramework)' == 'net7.0'">
|
||||
<PublishAot>true</PublishAot>
|
||||
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
|
||||
<NoWarn>$(NoWarn);IL2026</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="ComputeSharp.Core" Version="$(PackageVersion)" />
|
||||
<PackageReference Include="ComputeSharp" Version="$(PackageVersion)" />
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFrameworks>net472;netcoreapp3.1;net6.0</TargetFrameworks>
|
||||
<TargetFrameworks>net472;netcoreapp3.1;net6.0;net7.0</TargetFrameworks>
|
||||
<Platforms>AnyCPU;x64;ARM64</Platforms>
|
||||
<RestoreSources>
|
||||
https://api.nuget.org/v3/index.json;
|
||||
@@ -10,6 +10,12 @@
|
||||
</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(TargetFramework)' == 'net7.0'">
|
||||
<PublishAot>true</PublishAot>
|
||||
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
|
||||
<NoWarn>$(NoWarn);IL2026</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="ComputeSharp.Core" Version="$(PackageVersion)" />
|
||||
<PackageReference Include="ComputeSharp" Version="$(PackageVersion)" />
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFrameworks>net472;netcoreapp3.1;net6.0</TargetFrameworks>
|
||||
<TargetFrameworks>net472;netcoreapp3.1;net6.0;net7.0</TargetFrameworks>
|
||||
<Platforms>AnyCPU;x64;ARM64</Platforms>
|
||||
<RestoreSources>
|
||||
https://api.nuget.org/v3/index.json;
|
||||
@@ -10,6 +10,12 @@
|
||||
</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(TargetFramework)' == 'net7.0'">
|
||||
<PublishAot>true</PublishAot>
|
||||
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
|
||||
<NoWarn>$(NoWarn);IL2026</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="ComputeSharp.Core" Version="$(PackageVersion)" />
|
||||
<PackageReference Include="ComputeSharp" Version="$(PackageVersion)" />
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする