Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/eng
diff options
context:
space:
mode:
authorOmair Majid <omajid@redhat.com>2021-02-24 14:19:32 +0300
committerGitHub <noreply@github.com>2021-02-24 14:19:32 +0300
commit6b3a3050c70577bd1b3fd7611eef56679e22a4f1 (patch)
treecc033b3b2c7d84c8e557a3be796df82c11469ebc /eng
parentb37475f79d143063be6b6870260eec500d80189d (diff)
Enable source-build through arcade (#1823)
Co-authored-by: Marek Safar <marek.safar@gmail.com>
Diffstat (limited to 'eng')
-rw-r--r--eng/Build.props17
-rw-r--r--eng/SourceBuild.props8
-rw-r--r--eng/SourceBuildPrebuiltBaseline.xml5
-rw-r--r--eng/Version.Details.xml5
-rw-r--r--eng/azure-pipelines.yml16
5 files changed, 51 insertions, 0 deletions
diff --git a/eng/Build.props b/eng/Build.props
new file mode 100644
index 000000000..737c13e43
--- /dev/null
+++ b/eng/Build.props
@@ -0,0 +1,17 @@
+<Project>
+ <ItemGroup>
+
+ <ProjectToBuild Include="$(RepoRoot)src\linker\Mono.Linker.csproj" />
+ <ProjectToBuild Include="$(RepoRoot)src\ILLink.Tasks\ILLink.Tasks.csproj" />
+ <ProjectToBuild Condition="'$(DotNetBuildFromSource)' != 'true'" Include="$(RepoRoot)test\Mono.Linker.Tests\Mono.Linker.Tests.csproj" />
+ <ProjectToBuild Condition="'$(DotNetBuildFromSource)' != 'true'" Include="$(RepoRoot)test\Mono.Linker.Tests.Cases\Mono.Linker.Tests.Cases.csproj" />
+ <ProjectToBuild Condition="'$(DotNetBuildFromSource)' != 'true'" Include="$(RepoRoot)test\Mono.Linker.Tests.Cases.Expectations\Mono.Linker.Tests.Cases.Expectations.csproj" />
+ <ProjectToBuild Condition="'$(DotNetBuildFromSource)' != 'true'" Include="$(RepoRoot)src\analyzer\analyzer.csproj" />
+ <ProjectToBuild Condition="'$(DotNetBuildFromSource)' != 'true'" Include="$(RepoRoot)test\ILLink.Tasks.Tests\ILLink.Tasks.Tests.csproj" />
+ <ProjectToBuild Include="$(RepoRoot)src\ILLink.RoslynAnalyzer\ILLink.RoslynAnalyzer.csproj" />
+ <ProjectToBuild Include="$(RepoRoot)test\ILLink.RoslynAnalyzer.Tests\ILLink.RoslynAnalyzer.Tests.csproj" />
+ <ProjectToBuild Include="$(RepoRoot)src\linker\ref\Mono.Linker.csproj" />
+ <ProjectToBuild Include="$(RepoRoot)src\tlens\tlens.csproj" />
+
+ </ItemGroup>
+</Project>
diff --git a/eng/SourceBuild.props b/eng/SourceBuild.props
new file mode 100644
index 000000000..80661de2f
--- /dev/null
+++ b/eng/SourceBuild.props
@@ -0,0 +1,8 @@
+<Project>
+
+ <PropertyGroup>
+ <GitHubRepositoryName>linker</GitHubRepositoryName>
+ <SourceBuildManagedOnly>true</SourceBuildManagedOnly>
+ </PropertyGroup>
+
+</Project>
diff --git a/eng/SourceBuildPrebuiltBaseline.xml b/eng/SourceBuildPrebuiltBaseline.xml
new file mode 100644
index 000000000..c1b6dfbf0
--- /dev/null
+++ b/eng/SourceBuildPrebuiltBaseline.xml
@@ -0,0 +1,5 @@
+<UsageData>
+ <IgnorePatterns>
+ <UsagePattern IdentityGlob="*/*" />
+ </IgnorePatterns>
+</UsageData>
diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml
index 1df24bb91..0903c9937 100644
--- a/eng/Version.Details.xml
+++ b/eng/Version.Details.xml
@@ -6,6 +6,7 @@
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.21105.12">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>938b3e8b4edcd96ca0f0cbbae63c87b3f51f7afe</Sha>
+ <SourceBuild RepoName="arcade" ManagedOnly="true" />
</Dependency>
<Dependency Name="Microsoft.DotNet.ApiCompat" Version="6.0.0-beta.21105.12">
<Uri>https://github.com/dotnet/arcade</Uri>
@@ -14,6 +15,10 @@
<Dependency Name="Microsoft.NET.Sdk.IL" Version="6.0.0-preview.3.21121.7">
<Uri>https://github.com/dotnet/runtime</Uri>
<Sha>49cfb3507c586b539d0652814defbbc9e3073f16</Sha>
+ <!--
+ This would introduce a cyclic dependency, so it's explictly not enabled for now
+ <SourceBuild RepoName="runtime" />
+ -->
</Dependency>
</ToolsetDependencies>
</Dependencies>
diff --git a/eng/azure-pipelines.yml b/eng/azure-pipelines.yml
index d0cc1db10..655eeab95 100644
--- a/eng/azure-pipelines.yml
+++ b/eng/azure-pipelines.yml
@@ -45,6 +45,8 @@ stages:
testResultsFormat: vstest
enablePublishBuildAssets: true # generate build manifests and publish to BAR in internal builds
enableMicrobuild: true # only affects internal builds
+ # See https://github.com/dotnet/source-build/issues/2049
+ # enableSourceBuild: true
jobs:
@@ -85,6 +87,20 @@ stages:
${{ if eq(variables.officialBuild, 'true') }}:
displayName: Build and publish illink.sln $(_BuildConfig)
+ - job: SourceBuild_Managed
+ displayName: Source-Build (Managed)
+ pool:
+ vmImage: ubuntu-20.04
+ container: 'mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7-3e800f1-20190501005343'
+ workspace:
+ clean: all
+ steps:
+ - checkout: self
+ submodules: true
+ - template: /eng/common/templates/steps/source-build.yml
+ parameters:
+ enablePublishTestResults: true
+
- ${{ if eq(variables.officialBuild, 'false') }}:
- job: Linux
condition: eq(variables.officialBuild, 'false')