diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5200175..3a03638 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,11 +16,14 @@ jobs: os: [ windows-latest ] steps: - - uses: actions/checkout@v2 - - name: Setup .NET SDK 6.0.x and 7.0.x + - uses: actions/checkout@v4 + - name: Setup .NET SDK 6.0.x - 10.0.x uses: actions/setup-dotnet@v3 with: dotnet-version: | + 10.0.x + 9.0.x + 8.0.x 7.0.x 6.0.x @@ -31,4 +34,4 @@ jobs: - name: Build with dotnet run: | - dotnet build --configuration Release D:\a\FasterKvCache\FasterKvCache\FasterKv.Cache.sln \ No newline at end of file + dotnet build --configuration Release FasterKv.Cache.sln \ No newline at end of file diff --git a/.github/workflows/buildandtest.yml b/.github/workflows/buildandtest.yml index 8d10dc0..b02a9ec 100644 --- a/.github/workflows/buildandtest.yml +++ b/.github/workflows/buildandtest.yml @@ -9,18 +9,22 @@ on: jobs: linux: - name: build and test on ${{ matrix.os }} + name: build and test on ${{ matrix.os }} / ${{ matrix.framework }} runs-on: ${{ matrix.os }} strategy: matrix: os: [ ubuntu-latest ] + framework: [ net6.0, net7.0, net8.0, net9.0, net10.0 ] steps: - - uses: actions/checkout@v2 - - name: Setup .NET SDK 6.0.x and 7.0.x + - uses: actions/checkout@v4 + - name: Setup .NET SDK 6.0.x, 7.0.x, 8.0.x, 9.0.x, 10.0.x uses: actions/setup-dotnet@v3 with: dotnet-version: | + 10.0.x + 9.0.x + 8.0.x 7.0.x 6.0.x @@ -35,8 +39,8 @@ jobs: - name: Build with dotnet run: | - dotnet build --configuration Release /home/runner/work/FasterKvCache/FasterKvCache/FasterKv.Cache.sln + dotnet build --configuration Release FasterKv.Cache.sln - - name: Run tests on net7.0 + - name: Run tests on ${{ matrix.framework }} run: | - dotnet test --framework=net7.0 /home/runner/work/FasterKvCache/FasterKvCache/tests/FasterKv.Cache.Core.Tests/FasterKv.Cache.Core.Tests.csproj + dotnet test --framework=${{ matrix.framework }} tests/FasterKv.Cache.Core.Tests/FasterKv.Cache.Core.Tests.csproj diff --git a/.github/workflows/release_stable.yml b/.github/workflows/release_stable.yml index 9f7db63..2f523cd 100644 --- a/.github/workflows/release_stable.yml +++ b/.github/workflows/release_stable.yml @@ -1,10 +1,10 @@ name: Release_Stable on: - push: - tags: - - "*.*.*-beta*" - - "*.*.*-rc*" + push: + tags: + - "*.*.*-beta*" + - "*.*.*-rc*" jobs: build_artifact: @@ -12,24 +12,27 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: Setup .NET SDK 6.0.x and 7.0.x + - uses: actions/checkout@v4 + - name: Setup .NET SDK 6.0.x - 10.0.x uses: actions/setup-dotnet@v3 with: dotnet-version: | + 10.0.x + 9.0.x + 8.0.x 7.0.x 6.0.x - name: Build with dotnet - run: dotnet build --configuration Release /home/runner/work/FasterKvCache/FasterKvCache/FasterKv.Cache.sln + run: dotnet build --configuration Release FasterKv.Cache.sln - name: Pack with dotnet env: VERSION: ${{ github.ref_name }} - run: dotnet pack /home/runner/work/FasterKvCache/FasterKvCache/FasterKv.Cache.sln --version-suffix $VERSION -o /home/runner/work/nugetpkgs -c Release --no-build + run: dotnet pack FasterKv.Cache.sln --version-suffix $VERSION -o ./nugetpkgs -c Release --no-build - name: Upload artifact - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: nugetpkgs - path: /home/runner/work/nugetpkgs + path: ./nugetpkgs release_nuget: name: Release to Nuget @@ -38,7 +41,7 @@ jobs: steps: - name: Download build artifacts - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v4 with: name: nugetpkgs - name: list nugetpkgs diff --git a/.github/workflows/release_unstable.yml b/.github/workflows/release_unstable.yml index aaf55f2..ff5974d 100644 --- a/.github/workflows/release_unstable.yml +++ b/.github/workflows/release_unstable.yml @@ -1,11 +1,11 @@ name: Release_Unstable on: - push: - tags: - - "*.*.*" - - "!*.*.*-beta*" - - "!*.*.*-rc*" + push: + tags: + - "*.*.*" + - "!*.*.*-beta*" + - "!*.*.*-rc*" jobs: build_artifact: @@ -13,24 +13,27 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: Setup .NET SDK 6.0.x and 7.0.x + - uses: actions/checkout@v4 + - name: Setup .NET SDK 6.0.x - 10.0.x uses: actions/setup-dotnet@v3 with: dotnet-version: | + 10.0.x + 9.0.x + 8.0.x 7.0.x 6.0.x - name: Build with dotnet - run: dotnet build --configuration Release /home/runner/work/FasterKvCache/FasterKvCache/FasterKv.Cache.sln + run: dotnet build --configuration Release FasterKv.Cache.sln - name: Pack with dotnet env: VERSION: ${{ github.ref_name }} - run: dotnet pack /home/runner/work/FasterKvCache/FasterKvCache/FasterKv.Cache.sln --version-suffix $VERSION -o /home/runner/work/nugetpkgs -c Release --no-build + run: dotnet pack FasterKv.Cache.sln --version-suffix $VERSION -o ./nugetpkgs -c Release --no-build - name: Upload artifact - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: nugetpkgs - path: /home/runner/work/nugetpkgs + path: ./nugetpkgs release_nuget: name: Release to Nuget @@ -39,7 +42,7 @@ jobs: steps: - name: Download build artifacts - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v4 with: name: nugetpkgs - name: list nugetpkgs diff --git a/benchmark/FasterKvCache.Benchmark/FasterKvCache.Benchmark.csproj b/benchmark/FasterKvCache.Benchmark/FasterKvCache.Benchmark.csproj index 4968037..aa8330b 100644 --- a/benchmark/FasterKvCache.Benchmark/FasterKvCache.Benchmark.csproj +++ b/benchmark/FasterKvCache.Benchmark/FasterKvCache.Benchmark.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/FasterKv.Cache.Core/FasterKv.Cache.Core.csproj b/src/FasterKv.Cache.Core/FasterKv.Cache.Core.csproj index d15ccf2..112adb8 100644 --- a/src/FasterKv.Cache.Core/FasterKv.Cache.Core.csproj +++ b/src/FasterKv.Cache.Core/FasterKv.Cache.Core.csproj @@ -1,12 +1,35 @@ - net6.0;net7.0;netstandard2.0;net8.0;net9.0 - true + net6.0;net7.0;netstandard2.0;net8.0;net9.0;net10.0 + true + + + + + + + + + + + + + + + + + + + + + + + + - diff --git a/src/FasterKv.Cache.SystemTextJson/FasterKv.Cache.SystemTextJson.csproj b/src/FasterKv.Cache.SystemTextJson/FasterKv.Cache.SystemTextJson.csproj index ac37d9c..078fe22 100644 --- a/src/FasterKv.Cache.SystemTextJson/FasterKv.Cache.SystemTextJson.csproj +++ b/src/FasterKv.Cache.SystemTextJson/FasterKv.Cache.SystemTextJson.csproj @@ -4,8 +4,27 @@ netstandard2.0 - + + + + + + + + + + + + + + + + + + + + diff --git a/tests/FasterKv.Cache.Core.Tests/FasterKv.Cache.Core.Tests.csproj b/tests/FasterKv.Cache.Core.Tests/FasterKv.Cache.Core.Tests.csproj index 2ad4758..116cd05 100644 --- a/tests/FasterKv.Cache.Core.Tests/FasterKv.Cache.Core.Tests.csproj +++ b/tests/FasterKv.Cache.Core.Tests/FasterKv.Cache.Core.Tests.csproj @@ -1,7 +1,7 @@ - net9.0 + net6.0;net7.0;net8.0;net9.0;net10.0 enable enable false @@ -11,6 +11,7 @@ +