Skip to content

Commit 78598f9

Browse files
stevencl840zentron
authored andcommitted
Update Builds
Remove .net core 3.1 update from macos-10.15 to macos-latest Upgraded Nuke Upgrade to .Net 8 Convert to MacOS-latest instead of 10.15
1 parent b4ac79d commit 78598f9

File tree

7 files changed

+46
-33
lines changed

7 files changed

+46
-33
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ jobs:
2525
- name: Build
2626
run: dotnet build LibGit2Sharp.sln --configuration Release
2727
- name: Upload packages
28+
<<<<<<< HEAD
2829
uses: actions/[email protected]
30+
=======
31+
uses: actions/[email protected]
32+
>>>>>>> ced162ae (Update Builds)
2933
with:
3034
name: NuGet packages
3135
path: bin/Packages/
@@ -36,10 +40,17 @@ jobs:
3640
strategy:
3741
matrix:
3842
arch: [ amd64 ]
43+
<<<<<<< HEAD
3944
os: [ windows-2019, macos-11 ]
4045
tfm: [ net472, net6.0, net7.0 ]
4146
exclude:
4247
- os: macos-11
48+
=======
49+
os: [windows-2019, macos-latest]
50+
tfm: [ net472, net6.0 ]
51+
exclude:
52+
- os: macos-latest
53+
>>>>>>> ced162ae (Update Builds)
4354
tfm: net472
4455
fail-fast: false
4556
steps:
@@ -50,9 +61,13 @@ jobs:
5061
- name: Install .NET SDK
5162
uses: actions/[email protected]
5263
with:
64+
<<<<<<< HEAD
5365
dotnet-version: |
5466
7.0.x
5567
6.0.x
68+
=======
69+
dotnet-version: 6.0.x
70+
>>>>>>> ced162ae (Update Builds)
5671
- name: Run ${{ matrix.tfm }} tests
5772
run: dotnet test LibGit2Sharp.sln --configuration Release --framework ${{ matrix.tfm }} --logger "GitHubActions" /p:ExtraDefine=LEAKS_IDENTIFYING
5873
test-linux:
@@ -62,8 +77,13 @@ jobs:
6277
matrix:
6378
arch: [ amd64 ]
6479
# arch: [ amd64, arm64 ]
80+
<<<<<<< HEAD
6581
distro: [ alpine.3.13, alpine.3.14, alpine.3.15, alpine.3.16, alpine.3.17, centos.7, centos.stream.8, debian.10, debian.11, fedora.36, ubuntu.18.04, ubuntu.20.04, ubuntu.22.04 ]
6682
sdk: [ '6.0', '7.0' ]
83+
=======
84+
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 ]
85+
sdk: [ '6.0' ]
86+
>>>>>>> ced162ae (Update Builds)
6787
exclude:
6888
- distro: alpine.3.13
6989
sdk: '7.0'
@@ -72,8 +92,11 @@ jobs:
7292
include:
7393
- sdk: '6.0'
7494
tfm: net6.0
95+
<<<<<<< HEAD
7596
- sdk: '7.0'
7697
tfm: net7.0
98+
=======
99+
>>>>>>> ced162ae (Update Builds)
77100
fail-fast: false
78101
steps:
79102
- name: Checkout
@@ -87,5 +110,9 @@ jobs:
87110
run: |
88111
git_command="git config --global --add safe.directory /app"
89112
test_command="dotnet test LibGit2Sharp.sln --configuration Release -p:TargetFrameworks=${{ matrix.tfm }} --logger "GitHubActions" -p:ExtraDefine=LEAKS_IDENTIFYING"
113+
<<<<<<< HEAD
90114
docker run -t --rm --platform linux/${{ matrix.arch }} -v "$PWD:/app" gittools/build-images:${{ matrix.distro }}-sdk-${{ matrix.sdk }} sh -c "$git_command && $test_command"
91115

116+
=======
117+
docker run -t --rm --platform linux/${{ matrix.arch }} -v "$PWD:/app" gittools/build-images:${{ matrix.distro }}-sdk-${{ matrix.sdk }} sh -c "$test_command"
118+
>>>>>>> ced162ae (Update Builds)

.nuke/build.schema.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@
8383
"Compile",
8484
"Pack",
8585
"Restore",
86-
"TestNet6",
87-
"TestNetCoreApp31"
86+
"TestNet6"
8887
]
8988
}
9089
},
@@ -102,8 +101,7 @@
102101
"Compile",
103102
"Pack",
104103
"Restore",
105-
"TestNet6",
106-
"TestNetCoreApp31"
104+
"TestNet6"
107105
]
108106
}
109107
},

LibGit2Sharp.Tests/CloneFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public void CanInspectCertificateOnClone(string url, string hostname, Type certT
261261
Assert.True(valid);
262262
var x509 = ((CertificateX509)cert).Certificate;
263263
// we get a string with the different fields instead of a structure, so...
264-
Assert.Contains("CN=github.com,", x509.Subject);
264+
Assert.Contains("CN=github.com", x509.Subject);
265265
checksHappy = true;
266266
return false;
267267
}

LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj

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

33
<PropertyGroup>
4+
<<<<<<< HEAD
45
<TargetFrameworks Condition="'$(TargetFrameworks)'==''">net472;net6.0;net7.0</TargetFrameworks>
6+
=======
7+
<TargetFrameworks Condition="'$(TargetFrameworks)'==''">net472;net6.0</TargetFrameworks>
8+
>>>>>>> ced162ae (Update Builds)
59
</PropertyGroup>
610

711
<ItemGroup>

LibGit2Sharp/LibGit2Sharp.csproj

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

33
<PropertyGroup>
4+
<<<<<<< HEAD
45
<TargetFrameworks>net472;net6.0</TargetFrameworks>
6+
=======
7+
<TargetFrameworks>netstandard2.0;</TargetFrameworks>
8+
>>>>>>> ced162ae (Update Builds)
59
<GenerateDocumentationFile>true</GenerateDocumentationFile>
610
<Description>LibGit2Sharp brings all the might and speed of libgit2, a native Git implementation, to the managed world of .NET</Description>
711
<Company>LibGit2Sharp contributors</Company>

build/Build.cs

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using Nuke.Common;
2-
using Nuke.Common.CI;
3-
using Nuke.Common.Execution;
42
using Nuke.Common.IO;
53
using Nuke.Common.ProjectModel;
64
using Nuke.Common.Tools.DotNet;
@@ -9,16 +7,13 @@
97
using static Nuke.Common.IO.FileSystemTasks;
108
using static Nuke.Common.Tools.DotNet.DotNetTasks;
119

12-
[CheckBuildProjectConfigurations]
13-
[ShutdownDotNetAfterServerBuild]
1410
class Build : NukeBuild
1511
{
1612
/// Support plugins are available for:
1713
/// - JetBrains ReSharper https://nuke.build/resharper
1814
/// - JetBrains Rider https://nuke.build/rider
1915
/// - Microsoft VisualStudio https://nuke.build/visualstudio
2016
/// - Microsoft VSCode https://nuke.build/vscode
21-
2217
public static int Main() => Execute<Build>(x => x.Pack);
2318

2419
[Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")]
@@ -28,11 +23,13 @@ class Build : NukeBuild
2823

2924
[Solution] readonly Solution Solution;
3025

31-
[Parameter("Branch name for OctoVersion to use to calculate the version number. Can be set via the environment variable OCTOVERSION_CurrentBranch.",
32-
Name = "OCTOVERSION_CurrentBranch")]
26+
[Parameter(
27+
"Branch name for OctoVersion to use to calculate the version number. Can be set via the environment variable OCTOVERSION_CurrentBranch.",
28+
Name = "OCTOVERSION_CurrentBranch")]
3329
readonly string BranchName;
3430

35-
[Parameter("Whether to auto-detect the branch name - this is okay for a local build, but should not be used under CI.")]
31+
[Parameter(
32+
"Whether to auto-detect the branch name - this is okay for a local build, but should not be used under CI.")]
3633
readonly bool AutoDetectBranch = IsLocalBuild;
3734

3835
[OctoVersion(UpdateBuildNumber = true, BranchParameter = nameof(BranchName),
@@ -42,10 +39,7 @@ class Build : NukeBuild
4239
// For outline of original build process used by original source repository, check ./azure-pipelines/dotnet.yml
4340
Target Clean => _ => _
4441
.Before(Restore)
45-
.Executes(() =>
46-
{
47-
DeleteDirectory(ArtifactsDirectory);
48-
});
42+
.Executes(() => { DeleteDirectory(ArtifactsDirectory); });
4943

5044
Target Restore => _ => _
5145
.DependsOn(Clean)
@@ -67,35 +61,21 @@ class Build : NukeBuild
6761
.EnableNoRestore());
6862
});
6963

70-
Target TestNetCoreApp31 => _ => _
71-
.DependsOn(Compile)
72-
.Executes(() =>
73-
{
74-
DotNetTest(s => s
75-
.SetProjectFile(Solution)
76-
.SetConfiguration(Configuration)
77-
.SetFramework("netcoreapp3.1") // Dont bother building for full framework
78-
.SetNoBuild(true)
79-
.SetFilter("TestCategory!=FailsInCloudTest & TestCategory!=FailsWhileInstrumented")
80-
.EnableNoRestore());
81-
});
82-
8364
Target TestNet6 => _ => _
8465
.DependsOn(Compile)
8566
.Executes(() =>
8667
{
8768
DotNetTest(s => s
8869
.SetProjectFile(Solution)
8970
.SetConfiguration(Configuration)
90-
.SetFramework("net6.0") // Dont bother building for full framework
71+
.SetFramework("net6.0") // Dont bother building for full framework
9172
.SetNoBuild(true)
9273
.SetFilter("TestCategory!=FailsInCloudTest & TestCategory!=FailsWhileInstrumented")
9374
.EnableNoRestore());
9475
});
9576

9677
Target Pack => _ => _
9778
.DependsOn(Compile)
98-
.DependsOn(TestNetCoreApp31)
9979
.DependsOn(TestNet6)
10080
.Executes(() =>
10181
{

build/_build.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Nuke.Common" Version="6.0.3" />
14+
<PackageReference Include="Nuke.Common" Version="6.3.0" />
1515
<PackageDownload Include="OctoVersion.Tool" Version="[0.2.1058]" />
1616
</ItemGroup>
1717

0 commit comments

Comments
 (0)