Skip to content

Commit bfdb02a

Browse files
authoredMar 16, 2024
Merge pull request #2085 from libgit2/net8-updates
Updates for .NET 8
2 parents d9bf967 + 729ef8d commit bfdb02a

File tree

93 files changed

+422
-295
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+422
-295
lines changed
 

‎.github/workflows/ci.yml

+39-17
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ jobs:
1515
runs-on: ubuntu-22.04
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v3.5.0
18+
uses: actions/checkout@v4.1.2
1919
with:
2020
fetch-depth: 0
2121
- name: Install .NET SDK
22-
uses: actions/setup-dotnet@v3.0.3
22+
uses: actions/setup-dotnet@v4.0.0
2323
with:
2424
dotnet-version: 8.0.x
2525
- name: Build
2626
run: dotnet build LibGit2Sharp.sln --configuration Release
2727
- name: Upload packages
28-
uses: actions/upload-artifact@v3.1.2
28+
uses: actions/upload-artifact@v4.3.1
2929
with:
3030
name: NuGet packages
31-
path: bin/Packages/
31+
path: artifacts/package/
3232
retention-days: 7
3333
- name: Verify trimming compatibility
3434
run: dotnet publish TrimmingTestApp
@@ -37,24 +37,36 @@ jobs:
3737
runs-on: ${{ matrix.os }}
3838
strategy:
3939
matrix:
40-
arch: [ amd64 ]
41-
os: [ windows-2019, macos-11 ]
42-
tfm: [ net472, net6.0, net7.0 ]
40+
arch: [ x64 ]
41+
os: [ windows-2019, windows-2022, macos-11, macos-12, macos-13 ]
42+
tfm: [ net472, net6.0, net8.0 ]
4343
exclude:
4444
- os: macos-11
4545
tfm: net472
46+
- os: macos-11
47+
tfm: net8.0
48+
- os: macos-12
49+
tfm: net472
50+
- os: macos-13
51+
tfm: net472
52+
include:
53+
- arch: arm64
54+
os: macos-14
55+
tfm: net6.0
56+
- arch: arm64
57+
os: macos-14
58+
tfm: net8.0
4659
fail-fast: false
4760
steps:
4861
- name: Checkout
49-
uses: actions/checkout@v3.5.0
62+
uses: actions/checkout@v4.1.2
5063
with:
5164
fetch-depth: 0
5265
- name: Install .NET SDK
53-
uses: actions/setup-dotnet@v3.0.3
66+
uses: actions/setup-dotnet@v4.0.0
5467
with:
5568
dotnet-version: |
5669
8.0.x
57-
7.0.x
5870
6.0.x
5971
- name: Run ${{ matrix.tfm }} tests
6072
run: dotnet test LibGit2Sharp.sln --configuration Release --framework ${{ matrix.tfm }} --logger "GitHubActions" /p:ExtraDefine=LEAKS_IDENTIFYING
@@ -65,22 +77,32 @@ jobs:
6577
matrix:
6678
arch: [ amd64 ]
6779
# arch: [ amd64, arm64 ]
68-
distro: [ alpine.3.13, alpine.3.14, alpine.3.15, alpine.3.16, alpine.3.17, centos.stream.8, debian.10, debian.11, fedora.36, ubuntu.18.04, ubuntu.20.04, ubuntu.22.04 ]
69-
sdk: [ '6.0', '7.0' ]
80+
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 ]
81+
sdk: [ '6.0', '8.0' ]
7082
exclude:
7183
- distro: alpine.3.13
72-
sdk: '7.0'
84+
sdk: '8.0'
7385
- distro: alpine.3.14
74-
sdk: '7.0'
86+
sdk: '8.0'
87+
- distro: alpine.3.15
88+
sdk: '8.0'
89+
- distro: alpine.3.16
90+
sdk: '8.0'
91+
- distro: debian.10
92+
sdk: '8.0'
93+
- distro: fedora.36
94+
sdk: '8.0'
95+
- distro: ubuntu.18.04
96+
sdk: '8.0'
7597
include:
7698
- sdk: '6.0'
7799
tfm: net6.0
78-
- sdk: '7.0'
79-
tfm: net7.0
100+
- sdk: '8.0'
101+
tfm: net8.0
80102
fail-fast: false
81103
steps:
82104
- name: Checkout
83-
uses: actions/checkout@v3.5.0
105+
uses: actions/checkout@v4.1.2
84106
with:
85107
fetch-depth: 0
86108
- name: Setup QEMU

‎.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ _ReSharper*/
3838
*.DotSettings
3939

4040
_NCrunch_LibGit2Sharp/
41-
packages/
41+
artifacts/
4242
worktree.playlist

0 commit comments

Comments
 (0)