Skip to content

Commit 9357a5e

Browse files
committed
use .net 6 instead of obsolete netcoreapp3.1
1 parent 49fb282 commit 9357a5e

File tree

3 files changed

+11
-29
lines changed

3 files changed

+11
-29
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212
jobs:
1313
build:
1414
name: Build
15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v3
@@ -36,10 +36,10 @@ jobs:
3636
strategy:
3737
matrix:
3838
arch: [ amd64 ]
39-
os: [windows-2019, macos-10.15]
40-
tfm: [ net472, netcoreapp3.1, net6.0 ]
39+
os: [windows-latest, macos-latest]
40+
tfm: [ net472, net6.0 ]
4141
exclude:
42-
- os: macos-10.15
42+
- os: macos-latest
4343
tfm: net472
4444
fail-fast: false
4545
steps:
@@ -51,38 +51,20 @@ jobs:
5151
uses: actions/setup-dotnet@v3
5252
with:
5353
dotnet-version: 6.0.x
54-
- name: Install .NET Core 3.1 runtime
55-
if: matrix.tfm == 'netcoreapp3.1'
56-
uses: actions/setup-dotnet@v1.8.1
57-
with:
58-
dotnet-version: 3.1.x
5954
- name: Run ${{ matrix.tfm }} tests
6055
run: dotnet test LibGit2Sharp.sln --configuration Release --framework ${{ matrix.tfm }} --logger "GitHubActions" /p:ExtraDefine=LEAKS_IDENTIFYING
6156
test-linux:
6257
name: Test / ${{ matrix.distro }} / ${{ matrix.arch }} / ${{ matrix.tfm }}
63-
runs-on: ubuntu-20.04
58+
runs-on: ubuntu-22.04
6459
strategy:
6560
matrix:
6661
arch: [ amd64 ]
6762
# arch: [ amd64, arm64 ]
68-
distro: [ alpine.3.12, alpine.3.13, alpine.3.14, centos.7, centos.8, debian.9, debian.10, debian.11, fedora.33, ubuntu.18.04, ubuntu.20.04 ]
69-
sdk: [ '6.0', '3.1' ]
70-
exclude:
71-
- arch: arm64
72-
distro: alpine.3.12
73-
- arch: arm64
74-
distro: alpine.3.13
75-
sdk: '3.1'
76-
- arch: arm64
77-
distro: alpine.3.14
78-
sdk: '3.1'
79-
- arch: arm64
80-
distro: centos.7
63+
distro: [ alpine.3.15, alpine.3.16, alpine.3.17, centos.7, debian.10, debian.11, fedora.36, ubuntu.18.04, ubuntu.20.04, ubuntu.22.04 ]
64+
sdk: [ '6.0' ]
8165
include:
8266
- sdk: '6.0'
8367
tfm: net6.0
84-
- sdk: '3.1'
85-
tfm: netcoreapp3.1
8668
fail-fast: false
8769
steps:
8870
- name: Checkout

LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks Condition="'$(TargetFrameworks)'==''">net472;netcoreapp3.1;net6.0</TargetFrameworks>
4+
<TargetFrameworks Condition="'$(TargetFrameworks)'==''">net472;net6.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup>

LibGit2Sharp/LibGit2Sharp.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;netcoreapp3.1</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
55
<GenerateDocumentationFile>true</GenerateDocumentationFile>
66
<Description>LibGit2Sharp brings all the might and speed of libgit2, a native Git implementation, to the managed world of .NET</Description>
77
<Company>LibGit2Sharp contributors</Company>

0 commit comments

Comments
 (0)