From 88a838d73e162f83e1023af3423640017927480f Mon Sep 17 00:00:00 2001 From: lourensdejager Date: Tue, 24 Nov 2026 22:40:45 +0000 Subject: [PATCH] Remove net8.0 target .NET 8 reached end of support on 2026-11-10. The package now targets net472 and net10.0 only. CI no longer installs the .NET 8 SDK or runs the net8.0 and net9.0 test legs. Linux distros that only ran on the 8.0 and 9.0 SDK images (alpine 3.20, alpine 3.21, fedora 41) are dropped from the matrix. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 21 ++++---------------- LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj | 2 +- LibGit2Sharp/LibGit2Sharp.csproj | 2 +- 3 files changed, 6 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b55d053a..23fd5716e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,7 +54,7 @@ jobs: strategy: matrix: os: [ windows-2022, windows-2025, macos-15, macos-26 ] - tfm: [ net472, net8.0, net10.0 ] + tfm: [ net472, net10.0 ] exclude: - os: macos-15 tfm: net472 @@ -78,9 +78,7 @@ jobs: - name: Install .NET SDK uses: actions/setup-dotnet@v5 with: - dotnet-version: | - 10.0.x - 8.0.x + dotnet-version: 10.0.x - name: Run ${{ matrix.tfm }} tests run: dotnet test LibGit2Sharp.sln --configuration Release --framework ${{ matrix.tfm }} --logger "GitHubActions" /p:ExtraDefine=LEAKS_IDENTIFYING test-linux: @@ -89,20 +87,9 @@ jobs: strategy: matrix: arch: [ amd64, arm64 ] - distro: [ alpine.3.20, alpine.3.21, alpine.3.22, centos.stream.9, debian.12, fedora.41, fedora.42, ubuntu.22.04, ubuntu.24.04 ] - sdk: [ '8.0', '9.0', '10.0' ] - exclude: - - distro: alpine.3.20 - sdk: '10.0' - - distro: alpine.3.21 - sdk: '10.0' - - distro: fedora.41 - sdk: '10.0' + distro: [ alpine.3.22, centos.stream.9, debian.12, fedora.42, ubuntu.22.04, ubuntu.24.04 ] + sdk: [ '10.0' ] include: - - sdk: '8.0' - tfm: net8.0 - - sdk: '9.0' - tfm: net9.0 - sdk: '10.0' tfm: net10.0 - arch: amd64 diff --git a/LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj b/LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj index 3552a2bf8..a64ed4c59 100644 --- a/LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj +++ b/LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj @@ -1,7 +1,7 @@  - net472;net8.0;net10.0 + net472;net10.0 diff --git a/LibGit2Sharp/LibGit2Sharp.csproj b/LibGit2Sharp/LibGit2Sharp.csproj index 10a302bec..da6b36500 100644 --- a/LibGit2Sharp/LibGit2Sharp.csproj +++ b/LibGit2Sharp/LibGit2Sharp.csproj @@ -1,7 +1,7 @@  - net472;net8.0;net10.0 + net472;net10.0 12.0 true LibGit2Sharp brings all the might and speed of libgit2, a native Git implementation, to the managed world of .NET