diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index be63406..00a4fdd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,15 +14,15 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - framework: ["net6.0", "net7.0"] + framework: ["net6.0", "net8.0"] disable: ["HWIntrinsics", "SSSE3", "BMI2", "Noop"] steps: - - uses: actions/checkout@v3 - - name: Setup .NET 7 + - uses: actions/checkout@v4 + - name: Setup .NET 8 uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.x' + dotnet-version: '8.0.x' - name: Setup .NET 6 if: matrix.framework == 'net6.0' uses: actions/setup-dotnet@v3 @@ -57,11 +57,11 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v3 - - name: Setup .NET 7 + - uses: actions/checkout@v4 + - name: Setup .NET 8 uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.x' + dotnet-version: '8.0.x' # Cache packages for faster subsequent runs - uses: actions/cache@v3 with: @@ -74,8 +74,8 @@ jobs: run: dotnet restore - name: Test run: |- - dotnet test --runtime win10-x64 -f net48 --configuration Release --verbosity normal --logger "trx;LogFileName=results-x64.trx" - dotnet test --runtime win10-x86 -f net48 --configuration Release --verbosity normal --logger "trx;LogFileName=results-x86.trx" + dotnet test --runtime win-x64 -f net48 --configuration Release --verbosity normal --logger "trx;LogFileName=results-x64.trx" + dotnet test --runtime win-x86 -f net48 --configuration Release --verbosity normal --logger "trx;LogFileName=results-x86.trx" - name: Test Report x64 uses: actions/upload-artifact@v3 @@ -99,11 +99,11 @@ jobs: if: ${{ startsWith(github.ref, 'refs/tags/release/') }} steps: - - uses: actions/checkout@v3 - - name: Setup .NET 7 + - uses: actions/checkout@v4 + - name: Setup .NET 8 uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.x' + dotnet-version: '8.0.x' - name: Install dependencies run: dotnet restore diff --git a/.github/workflows/test-report.yml b/.github/workflows/test-report.yml index 5cb85e8..1fc58d1 100644 --- a/.github/workflows/test-report.yml +++ b/.github/workflows/test-report.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - framework: ["net6.0", "net7.0"] + framework: ["net6.0", "net8.0"] disable: ["HWIntrinsics", "SSSE3", "BMI2", "Noop"] steps: - uses: dorny/test-reporter@v1 diff --git a/Snappier.Benchmarks/Configuration/FrameworkCompareConfig.cs b/Snappier.Benchmarks/Configuration/FrameworkCompareConfig.cs index 1fc1a2f..939070d 100644 --- a/Snappier.Benchmarks/Configuration/FrameworkCompareConfig.cs +++ b/Snappier.Benchmarks/Configuration/FrameworkCompareConfig.cs @@ -14,9 +14,9 @@ public FrameworkCompareConfig(Job baseJob) AddJob(baseJob .WithRuntime(CoreRuntime.Core60)); - var job70 = baseJob.WithRuntime(CoreRuntime.Core70); - AddJob(job70); - AddJob(job70.WithPgo()); + var job80 = baseJob.WithRuntime(CoreRuntime.Core80); + AddJob(job80.WithPgo(false)); + AddJob(job80.WithPgo(true)); AddLogicalGroupRules(BenchmarkLogicalGroupRule.ByJob); diff --git a/Snappier.Benchmarks/Snappier.Benchmarks.csproj b/Snappier.Benchmarks/Snappier.Benchmarks.csproj index e29a043..9dc7308 100644 --- a/Snappier.Benchmarks/Snappier.Benchmarks.csproj +++ b/Snappier.Benchmarks/Snappier.Benchmarks.csproj @@ -2,11 +2,11 @@ Exe - net48;net6.0;net7.0 + net48;net6.0;net7.0;net8.0 AnyCPU false - 11 + 12 true ..\Snappier.snk $(NoWarn);8002 @@ -21,8 +21,8 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Snappier.Tests/Snappier.Tests.csproj b/Snappier.Tests/Snappier.Tests.csproj index 4d4543b..5331a4c 100644 --- a/Snappier.Tests/Snappier.Tests.csproj +++ b/Snappier.Tests/Snappier.Tests.csproj @@ -1,11 +1,11 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 $(TargetFrameworks);net48 false - 11 + 12 true ..\Snappier.snk @@ -20,13 +20,13 @@ - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Snappier/Internal/CopyHelpers.cs b/Snappier/Internal/CopyHelpers.cs index e668bdc..b06b164 100644 --- a/Snappier/Internal/CopyHelpers.cs +++ b/Snappier/Internal/CopyHelpers.cs @@ -237,14 +237,14 @@ public static void IncrementalCopySlow(ref byte source, ref byte op, ref byte op [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void UnalignedCopy64(in byte source, ref byte destination) { - long tempStackVar = Unsafe.As(ref Unsafe.AsRef(source)); + long tempStackVar = Unsafe.As(ref Unsafe.AsRef(in source)); Unsafe.As(ref destination) = tempStackVar; } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void UnalignedCopy128(in byte source, ref byte destination) { - Guid tempStackVar = Unsafe.As(ref Unsafe.AsRef(source)); + Guid tempStackVar = Unsafe.As(ref Unsafe.AsRef(in source)); Unsafe.As(ref destination) = tempStackVar; } } diff --git a/Snappier/Snappier.csproj b/Snappier/Snappier.csproj index bf15c3b..0724785 100644 --- a/Snappier/Snappier.csproj +++ b/Snappier/Snappier.csproj @@ -1,9 +1,9 @@ - netstandard2.0;net6.0;net7.0 + netstandard2.0;net6.0;net7.0;net8.0 - 11 + 12 enable true ..\Snappier.snk @@ -40,16 +40,9 @@ - + - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - -