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
37 changes: 27 additions & 10 deletions .github/workflows/gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,32 +46,50 @@ jobs:
publish_nuget: false

- os: windows-latest
framework: net9.0
framework: net10.0
coverage: true
results: results9.trx
artifact: test-results-win9
results: results10.trx
artifact: test-results-win10
std: true
flag: win9
flag: win10
publish_nuget: false

# macOS
- os: macos-latest
framework: net6.0
coverage: true
results: results.trx
artifact: test-results-mac
artifact: test-results-mac6
std: true
flag: mac
flag: mac6
publish_nuget: false

- os: macos-latest
framework: net10.0
coverage: true
results: results.trx
artifact: test-results-mac10
std: true
flag: mac10
publish_nuget: false

# Linux
- os: ubuntu-latest
framework: net6.0
coverage: true
results: results.trx
artifact: test-results-linux
artifact: test-results-linux6
std: true
flag: linux6
publish_nuget: false

- os: ubuntu-latest
framework: net10.0
coverage: true
results: results.trx
artifact: test-results-linux10
std: true
flag: linux
flag: linux10
publish_nuget: false

steps:
Expand All @@ -83,8 +101,7 @@ jobs:
dotnet-version: |
3.1.x
6.0.x
8.0.x
9.0.x
10.0.x

- name: Install dependencies
run: dotnet restore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<LangVersion>latest</LangVersion>
<TargetFrameworks>net10.0;net9.0;net48;net6.0;net8.0;</TargetFrameworks>
<TargetFrameworks>net10.0;net48;net6.0;</TargetFrameworks>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<!-- https://stackoverflow.com/a/59916801/131345 -->
<IsWindows Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">true</IsWindows>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<ServerGarbageCollection>true</ServerGarbageCollection>
<ConcurrentGarbageCollection>true</ConcurrentGarbageCollection>
<RetainVMGarbageCollection>true</RetainVMGarbageCollection>
Expand Down
5 changes: 5 additions & 0 deletions BitFaster.Caching.HitRateAnalysis/MemoryCacheAdaptor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ IEnumerator IEnumerable.GetEnumerator()
throw new NotImplementedException();
}

public V GetOrAdd<TArg>(K key, Func<K, TArg, V> valueFactory, TArg factoryArgument) where TArg : allows ref struct
{
throw new NotImplementedException();
}

private class BoundedPolicy : IBoundedPolicy
{
private int capacity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<TargetFrameworks>net10.0</TargetFrameworks>
<SignAssembly>False</SignAssembly>
<Version>2.0.0</Version>
<ServerGarbageCollection>true</ServerGarbageCollection>
Expand Down
5 changes: 5 additions & 0 deletions BitFaster.Caching.ThroughputAnalysis/MemoryCacheAdaptor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ IEnumerator IEnumerable.GetEnumerator()
throw new NotImplementedException();
}

public V GetOrAdd<TArg>(K key, Func<K, TArg, V> valueFactory, TArg factoryArgument) where TArg : allows ref struct
{
throw new NotImplementedException();
}

private class BoundedPolicy : IBoundedPolicy
{
private int capacity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net9.0</TargetFrameworks>
<LangVersion>9.0</LangVersion>
<TargetFrameworks>net6.0;net10.0</TargetFrameworks>
<LangVersion>13.0</LangVersion>
</PropertyGroup>

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

<PropertyGroup>
<TargetFrameworks>net48;netcoreapp3.1;net6.0;net9.0</TargetFrameworks>
<LangVersion Condition="'$(TargetFramework)' == 'net9.0'">13.0</LangVersion>
<LangVersion Condition="'$(TargetFramework)' != 'net9.0'">10.0</LangVersion>
<TargetFrameworks>net48;netcoreapp3.1;net6.0;net10.0</TargetFrameworks>
<LangVersion>13.0</LangVersion>
</PropertyGroup>

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

<PropertyGroup>
<TargetFrameworks>netstandard2.0;netcoreapp3.1;net6.0;net9.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;netcoreapp3.1;net6.0;net10.0;</TargetFrameworks>
<LangVersion>13.0</LangVersion>
<Authors>Alex Peck</Authors>
<Company />
Expand Down
Loading