Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -31,4 +34,4 @@ jobs:

- name: Build with dotnet
run: |
dotnet build --configuration Release D:\a\FasterKvCache\FasterKvCache\FasterKv.Cache.sln
dotnet build --configuration Release FasterKv.Cache.sln
16 changes: 10 additions & 6 deletions .github/workflows/buildandtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
25 changes: 14 additions & 11 deletions .github/workflows/release_stable.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,38 @@
name: Release_Stable

on:
push:
tags:
- "*.*.*-beta*"
- "*.*.*-rc*"
push:
tags:
- "*.*.*-beta*"
- "*.*.*-rc*"

jobs:
build_artifact:
name: Build and upload artifact
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
Expand All @@ -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
Expand Down
27 changes: 15 additions & 12 deletions .github/workflows/release_unstable.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,39 @@
name: Release_Unstable

on:
push:
tags:
- "*.*.*"
- "!*.*.*-beta*"
- "!*.*.*-rc*"
push:
tags:
- "*.*.*"
- "!*.*.*-beta*"
- "!*.*.*-rc*"

jobs:
build_artifact:
name: Build and upload artifact
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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.14.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.3" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.11" />
</ItemGroup>

<ItemGroup>
Expand Down
29 changes: 26 additions & 3 deletions src/FasterKv.Cache.Core/FasterKv.Cache.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,35 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net7.0;netstandard2.0;net8.0;net9.0</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFrameworks>net6.0;net7.0;netstandard2.0;net8.0;net9.0;net10.0</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="7.0.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.2" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.11" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net10.0'">
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.11" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.3" />
<PackageReference Include="Microsoft.FASTER.Core" Version="2.6.5" />
<PackageReference Update="PolySharp" Version="1.15.0" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,27 @@
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<PackageReference Include="System.Text.Json" Version="6.0.10" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
<PackageReference Include="System.Text.Json" Version="7.0.5" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="System.Text.Json" Version="8.0.5" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
<PackageReference Include="System.Text.Json" Version="9.0.3" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="System.Text.Json" Version="6.0.10" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="PolySharp" Version="1.15.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0;net10.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
Expand All @@ -11,6 +11,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Moq" Version="4.20.72" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.2">
Expand Down
Loading