Skip to content

Commit

Permalink
Build and run tests on net7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ocoanet committed Nov 30, 2022
1 parent 3a3b739 commit 4057f47
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 13 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
3.1.x
6.0.x
7.0.x
- name: Clear NuGet Cache
run: dotnet nuget locals all --clear
- name: Restore
Expand All @@ -26,7 +27,7 @@ jobs:
- name: Test
run: dotnet test --configuration Release --no-build src/Disruptor-net.sln
- name: Upload NuGet
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: NuGet
path: build/nuget/*.nupkg
Expand All @@ -35,13 +36,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
3.1.x
6.0.x
7.0.x
- name: Clear NuGet Cache
run: dotnet nuget locals all --clear
- name: Restore
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<LangVersion>10.0</LangVersion>
<LangVersion>11.0</LangVersion>
<Prefer32Bit>false</Prefer32Bit>
<DefaultItemExcludes>$(DefaultItemExcludes);*.DotSettings;*.ncrunchproject</DefaultItemExcludes>
<DebugType>embedded</DebugType>
Expand Down
2 changes: 1 addition & 1 deletion src/Disruptor.Benchmarks/Disruptor.Benchmarks.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<OutputType>exe</OutputType>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/Disruptor.HeapWalker/Disruptor.HeapWalker.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<OutputType>exe</OutputType>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Disruptor.PerfTests/Disruptor.PerfTests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<OutputType>exe</OutputType>
<SignAssembly>false</SignAssembly>
<DebugType>pdbonly</DebugType>
Expand Down
4 changes: 2 additions & 2 deletions src/Disruptor.Samples/Disruptor.Samples.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<OutputType>exe</OutputType>
<StartupObject>Disruptor.Samples.Wiki.GettingStarted.SampleProgram</StartupObject>
<LangVersion>Latest</LangVersion>
Expand All @@ -15,5 +15,5 @@
<ItemGroup>
<PackageReference Include="HdrHistogram" Version="2.5.0" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/Disruptor.Testing/Disruptor.Testing.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.1;net6.0</TargetFrameworks>
<TargetFrameworks>netstandard2.1;net7.0</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Disruptor.Tests/Disruptor.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net6.0</TargetFrameworks>
<TargetFrameworks>netcoreapp3.1;net7.0</TargetFrameworks>
<Nullable>enable</Nullable>
</PropertyGroup>

Expand Down

0 comments on commit 4057f47

Please sign in to comment.