Skip to content

Commit

Permalink
Cleanup and refactor source-build pipeline job
Browse files Browse the repository at this point in the history
Conflicts:
	azure-pipelines.yml
  • Loading branch information
MichaelSimons committed Apr 16, 2021
1 parent 89ceb3a commit a0b4457
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 29 deletions.
26 changes: 2 additions & 24 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ jobs:
configuration: Debug
testArguments: --testCoreClr --helixQueueName OSX.1014.Amd64.Open

- template: eng/common/templates/jobs/source-build.yml

# Build Correctness Jobs

- job: Correctness_Determinism
Expand Down Expand Up @@ -198,30 +200,6 @@ jobs:
publishLocation: Container
condition: succeeded()

- job: Correctness_SourceBuild
pool:
name: NetCorePublic-Pool
queue: BuildPool.Ubuntu.1604.amd64.Open
timeoutInMinutes: 90
steps:
- template: eng/pipelines/checkout-unix-task.yml

- script: ./eng/cibuild.sh --configuration Debug --prepareMachine --binaryLog --sourceBuild
displayName: Build

- template: eng/pipelines/publish-logs.yml
parameters:
jobName: Correctness_SourceBuild
configuration: Release
- task: PublishBuildArtifacts@1
displayName: Publish Logs
inputs:
PathtoPublish: '$(Build.SourcesDirectory)/artifacts/log/Debug'
ArtifactName: 'SourceBuild_Test'
publishLocation: Container
continueOnError: true
condition: not(succeeded())

- job: Correctness_Rebuild
pool:
name: NetCorePublic-Pool
Expand Down
10 changes: 10 additions & 0 deletions eng/SourceBuild.props
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,14 @@
Condition="'@(SourceBuildPatchFile)' != ''" />
</Target>

<!--
The build script passes in the full path of the sln to build. This must be overridden in order to build
the cloned source in the inner build.
-->
<Target Name="ConfigureInnerBuildArg" BeforeTargets="GetSourceBuildCommandConfiguration">
<PropertyGroup>
<InnerBuildArgs>$(InnerBuildArgs) /p:Projects="$(InnerSourceBuildRepoRoot)\Compilers.sln"</InnerBuildArgs>
</PropertyGroup>
</Target>

</Project>
5 changes: 0 additions & 5 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Dependencies>
<ProductDependencies>
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build" Version="0.1.0-alpha.1.21126.2">
<Uri>https://github.com/dotnet/source-build</Uri>
<Sha>c06ae1212bd69e9fe52bed0b0a7d79cc8ea39054</Sha>
<SourceBuild RepoName="source-build" ManagedOnly="true" />
</Dependency>
<Dependency Name="Microsoft.SourceBuild.Intermediate.xliff-tasks" Version="1.0.0-beta.21126.1">
<Uri>https://github.com/dotnet/xliff-tasks</Uri>
<Sha>7e80445ee82adbf9a8e6ae601ac5e239d982afaa</Sha>
Expand Down
6 changes: 6 additions & 0 deletions eng/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ function MakeBootstrapBuild {
}

function BuildSolution {
local solution="Compilers.sln"
echo "$solution:"

InitializeToolset
local toolset_build_proj=$_InitializeToolset

Expand All @@ -238,6 +241,8 @@ function BuildSolution {
export RoslynCommandLineLogFile="$log_dir/vbcscompiler.log"
fi

local projects="$repo_root/$solution"

UNAME="$(uname)"
# NuGet often exceeds the limit of open files on Mac and Linux
# https://github.com/NuGet/Home/issues/2163
Expand Down Expand Up @@ -288,6 +293,7 @@ function BuildSolution {
MSBuild $toolset_build_proj \
$bl \
/p:Configuration=$configuration \
/p:Projects="$projects" \
/p:RepoRoot="$repo_root" \
/p:Restore=$restore \
/p:Build=$build \
Expand Down

0 comments on commit a0b4457

Please sign in to comment.