Skip to content

Commit bb69034

Browse files
Ensure deterministic builds work when triggered against individual projects
1 parent 6871cba commit bb69034

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

msbuild/props/SixLabors.Global.props

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@
4545
<PackageOutputPath>$(BaseArtifactsPath)pkg/$(BaseArtifactsPathSuffix)/$(Configuration)/</PackageOutputPath>
4646
</PropertyGroup>
4747

48+
<!-- Ensure deterministic builds work when triggered against individual projects. -->
49+
<!-- https://github.com/dotnet/roslyn/issues/37379#issuecomment-513371985 -->
50+
<ItemGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
51+
<SourceRoot Include="$(MSBuildThisFileDirectory)/"/>
52+
</ItemGroup>
53+
4854
<!-- Public key definition for signing assemblies. -->
4955
<PropertyGroup>
5056
<SignAssembly>true</SignAssembly>

msbuild/props/SixLabors.Src.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</PropertyGroup>
1010

1111
<!-- Add deterministic builds in CI .-->
12-
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true' AND '$(SIXLABORS_DOCS_BUILD)' == ''">
12+
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
1313
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
1414
<EmbedUntrackedSources>true</EmbedUntrackedSources>
1515
</PropertyGroup>

0 commit comments

Comments
 (0)