Skip to content

Commit ca86a06

Browse files
committed
Enable source-build with arcade
This enables 'source-build', which makes it easier to build the entire shipping .NET SDK from source. This is the first and second step of arcade-powered-source-build: https://github.com/dotnet/source-build/blob/master/Documentation/planning/arcade-powered-source-build/README.md See dotnet/sourcelink#692 for a similar PR, that this is based on. Aside from arcade-specific changes, it also makes all `.sh` files executable to make this build under Linux/macOS. The rename from LICENSE to LICENSE.txt is a workaround for NuGet/Home#7601.
1 parent 0eafbd2 commit ca86a06

28 files changed

+253
-0
lines changed
File renamed without changes.

azure-pipelines.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ stages:
2424
enablePublishTestResults: true
2525
enablePublishBuildAssets: true
2626
enablePublishUsingPipelines: $(_PublishUsingPipelines)
27+
enableSourceBuild: true
2728
enableTelemetry: true
2829
helixRepo: dotnet/test-templates
2930
jobs:

build.sh

100644100755
File mode changed.

eng/SourceBuild.props

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<Project>
2+
3+
<PropertyGroup>
4+
<GitHubRepositoryName>test-templates</GitHubRepositoryName>
5+
<SourceBuildManagedOnly>true</SourceBuildManagedOnly>
6+
</PropertyGroup>
7+
8+
<Target Name="ApplySourceBuildPatchFiles"
9+
Condition="
10+
'$(ArcadeBuildFromSource)' == 'true'"
11+
AfterTargets="PrepareInnerSourceBuildRepoRoot">
12+
13+
<ItemGroup>
14+
<SourceBuildPatchFile Include="$(RepositoryEngineeringDir)source-build-patches\*.patch" />
15+
</ItemGroup>
16+
17+
<Exec
18+
Command="git apply --ignore-whitespace --whitespace=nowarn &quot;%(SourceBuildPatchFile.FullPath)&quot;"
19+
WorkingDirectory="$(CurrentRepoSourceBuildSourceDir)"
20+
Condition="'@(SourceBuildPatchFile)' != ''" />
21+
</Target>
22+
23+
</Project>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<UsageData>
2+
<IgnorePatterns>
3+
<UsagePattern IdentityGlob="*/*" />
4+
</IgnorePatterns>
5+
</UsageData>

eng/common/SetupNugetSources.sh

100644100755
File mode changed.

eng/common/build.sh

100644100755
File mode changed.

eng/common/cibuild.sh

100644100755
File mode changed.

eng/common/cross/arm64/tizen-build-rootfs.sh

100644100755
File mode changed.

eng/common/cross/arm64/tizen-fetch.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)