Skip to content

Commit

Permalink
SourceLink + DeterminsticBuild
Browse files Browse the repository at this point in the history
  • Loading branch information
MoaidHathot committed Jan 19, 2024
1 parent 324b5ca commit f0d3822
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
20 changes: 19 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@
<BaseName>MoaidHathot.Dumpify</BaseName>
</PropertyGroup>

<PropertyGroup>
<PropertyGroup Label="Settings">
<Deterministic>true</Deterministic>
<DebugSymbols>true</DebugSymbols>
<DebugType>embedded</DebugType>
<MinVerSkip Condition="'$(Configuration)' == 'Debug'">true</MinVerSkip>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsPackable>false</IsPackable>
</PropertyGroup>

<PropertyGroup Label="Package Info">
<Product>Dumpify</Product>
<Authors>Moaid Hathot</Authors>
<Title>Dumpify</Title>
Expand All @@ -29,4 +38,13 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/MoaidHathot/Dumpify/master/images/icon?sanitize=true</PackageIconUrl>
</PropertyGroup>

<PropertyGroup Label="SourceLink" Condition="'$(GITHUB_ACTIONS)' == 'true'" Label="Deterministic Build">
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>

<PropertyGroup Label="Deterministic Build" Condition="'$(GITHUB_ACTIONS)' == 'true'" Label="Deterministic Build">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
</Project>
3 changes: 2 additions & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
<PackageVersion Include="xunit" Version="2.6.2" />
<PackageVersion Include="xunit.analyzers" Version="1.6.0" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.4" />
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
</ItemGroup>
</Project>
</Project>

0 comments on commit f0d3822

Please sign in to comment.