Add more .NET Core 3.1 validation tests in CI script
このコミットが含まれているのは:
1 親
f3eb04e4b7
コミット
23ddbace7f
5ファイル変更
+39
-14
検索条件に一致するファイルはありません
@@ -59,28 +59,44 @@ jobs:
|
||||
steps:
|
||||
- name: Git checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup .NET Core 3.1 SDK
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 3.1.x
|
||||
- name: Setup .NET 6 SDK
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 6.0.x
|
||||
- name: Build ComputeSharp.Sample
|
||||
run: dotnet build samples\ComputeSharp.Sample\ComputeSharp.Sample.csproj -c Release
|
||||
- name: Build ComputeSharp.Sample (.NET 6)
|
||||
run: dotnet build samples\ComputeSharp.Sample\ComputeSharp.Sample.csproj -c Release -f net6.0
|
||||
shell: cmd
|
||||
- name: Run ComputeSharp.Sample
|
||||
- name: Run ComputeSharp.Sample (.NET 6)
|
||||
run: dotnet samples\ComputeSharp.Sample\bin\Release\net6.0\ComputeSharp.Sample.dll
|
||||
shell: cmd
|
||||
- name: Build ComputeSharp.Sample (.NET Core 3.1)
|
||||
run: dotnet build samples\ComputeSharp.Sample\ComputeSharp.Sample.csproj -c Release -f netcoreapp3.1 /p:Platform=x64 -r win-x64
|
||||
shell: cmd
|
||||
- name: Run ComputeSharp.Sample (.NET Core 3.1)
|
||||
run: samples\ComputeSharp.Sample\bin\x64\Release\netcoreapp3.1\win-x64\ComputeSharp.Sample.exe
|
||||
shell: cmd
|
||||
- name: Build ComputeSharp.Sample.FSharp
|
||||
run: dotnet build samples\ComputeSharp.Sample.FSharp\ComputeSharp.Sample.FSharp.fsproj -c Release
|
||||
shell: cmd
|
||||
- name: Run ComputeSharp.Sample.FSharp
|
||||
run: dotnet samples\ComputeSharp.Sample.FSharp\bin\Release\net6.0\ComputeSharp.Sample.FSharp.dll
|
||||
shell: cmd
|
||||
- name: Build ComputeSharp.ImageProcessing.csproj
|
||||
run: dotnet build samples\ComputeSharp.ImageProcessing\ComputeSharp.ImageProcessing.csproj -c Release
|
||||
- name: Build ComputeSharp.ImageProcessing.csproj (.NET 6)
|
||||
run: dotnet build samples\ComputeSharp.ImageProcessing\ComputeSharp.ImageProcessing.csproj -c Release -f net6.0
|
||||
shell: cmd
|
||||
- name: Run ComputeSharp.ImageProcessing.csproj
|
||||
- name: Run ComputeSharp.ImageProcessing.csproj (.NET 6)
|
||||
run: dotnet samples\ComputeSharp.ImageProcessing\bin\Release\net6.0\ComputeSharp.ImageProcessing.dll
|
||||
shell: cmd
|
||||
- name: Build ComputeSharp.ImageProcessing.csproj (.NET Core 3.1)
|
||||
run: dotnet build samples\ComputeSharp.ImageProcessing\ComputeSharp.ImageProcessing.csproj -c Release -f netcoreapp3.1 /p:Platform=x64 -r win-x64
|
||||
shell: cmd
|
||||
- name: Run ComputeSharp.ImageProcessing.csproj (.NET Core 3.1)
|
||||
run: samples\ComputeSharp.ImageProcessing\bin\x64\Release\netcoreapp3.1\win-x64\ComputeSharp.ImageProcessing.exe
|
||||
shell: cmd
|
||||
- name: Build ComputeSharp.Benchmark.csproj
|
||||
run: dotnet build samples\ComputeSharp.Benchmark\ComputeSharp.Benchmark.csproj -c Release
|
||||
shell: cmd
|
||||
@@ -130,12 +146,18 @@ jobs:
|
||||
with:
|
||||
name: ComputeSharp.nupkg
|
||||
path: src\ComputeSharp.Package\bin\Release\ComputeSharp.nupkg
|
||||
- name: Build ComputeSharp.Sample.NuGet
|
||||
run: dotnet build samples\ComputeSharp.Sample.NuGet\ComputeSharp.Sample.NuGet.csproj -c Release
|
||||
- name: Build ComputeSharp.Sample.NuGet (.NET 6)
|
||||
run: dotnet build samples\ComputeSharp.Sample.NuGet\ComputeSharp.Sample.NuGet.csproj -c Release -f net6.0
|
||||
shell: cmd
|
||||
- name: Run ComputeSharp.Sample.NuGet
|
||||
- name: Run ComputeSharp.Sample.NuGet (.NET 6)
|
||||
run: dotnet samples\ComputeSharp.Sample.NuGet\bin\Release\net6.0\ComputeSharp.Sample.NuGet.dll
|
||||
shell: cmd
|
||||
- name: Build ComputeSharp.Sample.NuGet (.NET Core 3.1)
|
||||
run: dotnet build samples\ComputeSharp.Sample.NuGet\ComputeSharp.Sample.NuGet.csproj -c Release -f netcoreapp3.1 -r win-x64
|
||||
shell: cmd
|
||||
- name: Run ComputeSharp.Sample.NuGet (.NET Core 3.1)
|
||||
run: samples\ComputeSharp.Sample.NuGet\bin\Release\netcoreapp3.1\win-x64\ComputeSharp.Sample.NuGet.exe
|
||||
shell: cmd
|
||||
|
||||
# Run the extra tests to validate a number of build and publishing configurations.
|
||||
# This is used to ensure the native dependencies can always be loaded correctly
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFrameworks>netcoreapp3.1;net6.0</TargetFrameworks>
|
||||
<Platforms>AnyCPU;x64;ARM64</Platforms>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFrameworks>netcoreapp3.1;net6.0</TargetFrameworks>
|
||||
<Platforms>AnyCPU;x64;ARM64</Platforms>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFrameworks>netcoreapp3.1;net6.0</TargetFrameworks>
|
||||
<Platforms>AnyCPU;x64;ARM64</Platforms>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -46,7 +46,7 @@ public class NativeLibrariesResolverTests
|
||||
{
|
||||
CleanSampleProject(configuration, rid);
|
||||
|
||||
Assert.AreEqual(0, Exec(SampleProjectDirectory!, "dotnet", $"run -c {configuration} {ToOption(rid)}"));
|
||||
Assert.AreEqual(0, Exec(SampleProjectDirectory!, "dotnet", $"run -c {configuration} -f net6.0 {ToOption(rid)}"));
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
@@ -123,7 +123,7 @@ public class NativeLibrariesResolverTests
|
||||
// Furthermore, only publishing in Release mode is tested.
|
||||
CleanSampleProject(Configuration.Release, RID.Win_x64);
|
||||
|
||||
Exec(SampleProjectDirectory!, "dotnet", $"publish -c Release -r win-x64 {ToOption(publishMode)} {ToOption(deploymentMode)} {ToOption(nativeLibsDeploymentMode)} /bl");
|
||||
Exec(SampleProjectDirectory!, "dotnet", $"publish -c Release -f net6.0 -r win-x64 {ToOption(publishMode)} {ToOption(deploymentMode)} {ToOption(nativeLibsDeploymentMode)} /bl");
|
||||
|
||||
string pathToAppHost = Path.Combine("bin", $"Release", "net6.0", "win-x64", "publish", "ComputeSharp.Sample.NuGet.exe");
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする