File tree Expand file tree Collapse file tree 4 files changed +56
-4
lines changed
Expand file tree Collapse file tree 4 files changed +56
-4
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+ on :
3+ push :
4+ branches : [master, release-*]
5+ tags :
6+ - ' [0-9]+.[0-9]+.[0-9]+'
7+ - ' [0-9]+.[0-9]+.[0-9]+-*'
8+ pull_request :
9+ workflow_dispatch :
10+ env :
11+ DOTNET_NOLOGO : true
12+ jobs :
13+ build :
14+ name : ${{ matrix.name }}
15+ runs-on : ${{ matrix.os }}
16+ strategy :
17+ matrix :
18+ include :
19+ - os : windows-2019
20+ name : Windows
21+ - os : ubuntu-20.04
22+ name : Linux
23+ - os : macos-10.15
24+ name : macOS
25+ fail-fast : false
26+ steps :
27+ - name : Checkout
28+ 29+ with :
30+ fetch-depth : 0
31+ - name : Setup .NET SDK
32+ 33+ with :
34+ dotnet-version : 5.0.x
35+ - name : Setup .NET Core 3.1 runtime
36+ 37+ with :
38+ dotnet-version : 3.1.x
39+ - name : Build
40+ run : dotnet build LibGit2Sharp.sln --configuration Release
41+ - name : Upload packages
42+ if : matrix.name == 'Windows'
43+ 44+ with :
45+ name : NuGet packages
46+ path : bin/Packages/
47+ retention-days : 7
48+ - name : Run tests
49+ run : dotnet test LibGit2Sharp.sln --configuration Release --no-build --logger "GitHubActions"
50+
Original file line number Diff line number Diff line change 44 <AllowUnsafeBlocks >true</AllowUnsafeBlocks >
55 <OutputPath >$(MSBuildThisFileDirectory)bin\$(MSBuildProjectName)\$(Configuration)\</OutputPath >
66 <BaseIntermediateOutputPath >$(MSBuildThisFileDirectory)obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath >
7- <PackageOutputPath >$(MSBuildThisFileDirectory)bin\Packages\$(Configuration)\ </PackageOutputPath >
7+ <PackageOutputPath >$(MSBuildThisFileDirectory)bin\Packages\</PackageOutputPath >
88 <DefineConstants Condition =" '$(ExtraDefine)' != '' " >$(DefineConstants);$(ExtraDefine)</DefineConstants >
99 </PropertyGroup >
10-
10+
1111</Project >
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFrameworks >net472;netcoreapp2 .1;net5.0</TargetFrameworks >
4+ <TargetFrameworks >net472;netcoreapp3 .1;net5.0</TargetFrameworks >
55 </PropertyGroup >
66
77 <ItemGroup >
1111 </ItemGroup >
1212
1313 <ItemGroup >
14- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.10.0" />
14+ <PackageReference Include =" GitHubActionsTestLogger" Version =" 1.2.0" />
15+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.11.0" />
1516 <PackageReference Include =" Moq" Version =" 4.16.1" />
1617 <PackageReference Include =" xunit" Version =" 2.4.1" />
1718 <PackageReference Include =" xunit.runner.console" Version =" 2.4.1" />
Original file line number Diff line number Diff line change 1818 <AssemblyOriginatorKeyFile >..\libgit2sharp.snk</AssemblyOriginatorKeyFile >
1919 <PackageIcon >square-logo.png</PackageIcon >
2020 <PackageLicenseFile >App_Readme/LICENSE.md</PackageLicenseFile >
21+ <GeneratePackageOnBuild >true</GeneratePackageOnBuild >
2122 </PropertyGroup >
2223
2324 <ItemGroup >
You can’t perform that action at this time.
0 commit comments