Skip to content

Commit 0f16963

Browse files
committed
Add net9.0
1 parent f0a989c commit 0f16963

File tree

3 files changed

+12
-21
lines changed

3 files changed

+12
-21
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install .NET SDK
2222
uses: actions/setup-dotnet@v4.0.0
2323
with:
24-
dotnet-version: 8.0.x
24+
dotnet-version: 9.0.x
2525
- name: Build
2626
run: dotnet build LibGit2Sharp.sln --configuration Release
2727
- name: Upload packages
@@ -39,7 +39,7 @@ jobs:
3939
matrix:
4040
arch: [ x64 ]
4141
os: [ windows-2019, windows-2022, macos-12, macos-13 ]
42-
tfm: [ net472, net8.0 ]
42+
tfm: [ net472, net8.0, net9.0 ]
4343
exclude:
4444
- os: macos-12
4545
tfm: net472
@@ -49,6 +49,9 @@ jobs:
4949
- arch: arm64
5050
os: macos-14
5151
tfm: net8.0
52+
- arch: arm64
53+
os: macos-14
54+
tfm: net9.0
5255
fail-fast: false
5356
steps:
5457
- name: Checkout
@@ -59,6 +62,7 @@ jobs:
5962
uses: actions/setup-dotnet@v4.0.0
6063
with:
6164
dotnet-version: |
65+
9.0.x
6266
8.0.x
6367
- name: Run ${{ matrix.tfm }} tests
6468
run: dotnet test LibGit2Sharp.sln --configuration Release --framework ${{ matrix.tfm }} --logger "GitHubActions" /p:ExtraDefine=LEAKS_IDENTIFYING
@@ -69,26 +73,13 @@ jobs:
6973
matrix:
7074
arch: [ amd64 ]
7175
# arch: [ amd64, arm64 ]
72-
distro: [ alpine.3.13, alpine.3.14, alpine.3.15, alpine.3.16, alpine.3.17, alpine.3.18, centos.stream.8, debian.10, debian.11, fedora.36, fedora.37, ubuntu.18.04, ubuntu.20.04, ubuntu.22.04 ]
73-
sdk: [ '8.0' ]
74-
exclude:
75-
- distro: alpine.3.13
76-
sdk: '8.0'
77-
- distro: alpine.3.14
78-
sdk: '8.0'
79-
- distro: alpine.3.15
80-
sdk: '8.0'
81-
- distro: alpine.3.16
82-
sdk: '8.0'
83-
- distro: debian.10
84-
sdk: '8.0'
85-
- distro: fedora.36
86-
sdk: '8.0'
87-
- distro: ubuntu.18.04
88-
sdk: '8.0'
76+
distro: [ alpine.3.17, alpine.3.18, centos.stream.8, debian.11, fedora.37, ubuntu.18.04, ubuntu.20.04, ubuntu.22.04 ]
77+
sdk: [ '8.0', '9.0' ]
8978
include:
9079
- sdk: '8.0'
9180
tfm: net8.0
81+
- sdk: '9.0'
82+
tfm: net9.0
9283
fail-fast: false
9384
steps:
9485
- name: Checkout

LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj

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

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

77
<ItemGroup>

TrimmingTestApp/TrimmingTestApp.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<OutputType>Exe</OutputType>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>

0 commit comments

Comments
 (0)