From aaed8912c0f07e28e737ffd83bcc0b92c2028b22 Mon Sep 17 00:00:00 2001 From: pmosk Date: Thu, 24 Aug 2023 23:54:00 +0400 Subject: [PATCH 1/2] Allow net6.0 and net7.0 --- .../AsyncPipeline/AsyncPipeline.T/AsyncPipeline.T.cs | 6 +++--- src/core-asyncpipeline/AsyncPipeline/AsyncPipeline.csproj | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/core-asyncpipeline/AsyncPipeline/AsyncPipeline.T/AsyncPipeline.T.cs b/src/core-asyncpipeline/AsyncPipeline/AsyncPipeline.T/AsyncPipeline.T.cs index 1ec3ab0..cb7c6f6 100644 --- a/src/core-asyncpipeline/AsyncPipeline/AsyncPipeline.T/AsyncPipeline.T.cs +++ b/src/core-asyncpipeline/AsyncPipeline/AsyncPipeline.T/AsyncPipeline.T.cs @@ -31,15 +31,15 @@ private AsyncPipeline(int _) { isStopped = true; valueTask = default; - cancellationToken = default; options = null; + cancellationToken = default; } public AsyncPipelineOptions Options => - options ?? InnerEmptyOptions.Value; + options ?? InnerDefaultOptions.Value; - private static class InnerEmptyOptions + private static class InnerDefaultOptions { internal static readonly AsyncPipelineOptions Value = new(); } diff --git a/src/core-asyncpipeline/AsyncPipeline/AsyncPipeline.csproj b/src/core-asyncpipeline/AsyncPipeline/AsyncPipeline.csproj index a09c76b..9b48c8e 100644 --- a/src/core-asyncpipeline/AsyncPipeline/AsyncPipeline.csproj +++ b/src/core-asyncpipeline/AsyncPipeline/AsyncPipeline.csproj @@ -1,7 +1,7 @@ - net6.0 + net6.0;net7.0 disable enable true @@ -13,7 +13,7 @@ https://github.com/pfpack/early-core-asyncpipeline pfpack Andrei Sergeev, Pavel Moskovoy - Copyright © 2020-2022 Andrei Sergeev, Pavel Moskovoy + Copyright © 2020-2023 Andrei Sergeev, Pavel Moskovoy EarlyFuncPack Core.AsyncPipeline is a core library for .NET consisting of asynchronous pipeline. System EarlyFuncPack.Core.AsyncPipeline @@ -32,7 +32,7 @@ - + \ No newline at end of file From 85838f7b3846f565eea4288aa3fc0e35d95d9682 Mon Sep 17 00:00:00 2001 From: pmosk Date: Fri, 25 Aug 2023 00:00:30 +0400 Subject: [PATCH 2/2] Fix github workflow --- .github/workflows/dotnet.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index b454182..74d3126 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -17,12 +17,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: - dotnet-version: 6.0.x - include-prerelease: false + dotnet-version: | + 6.0.x + 7.0.x # Create Local NuGet Source @@ -47,4 +48,8 @@ jobs: - name: Push Packages if: ${{ github.event_name == 'release' }} - run: dotnet nuget push "../../../nuget/*.nupkg" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NuGetSourcePassword }} --skip-duplicate + run: > + dotnet nuget push "../../../nuget/*.nupkg" + -s https://api.nuget.org/v3/index.json + -k ${{ secrets.NuGetSourcePassword }} + --skip-duplicate