Skip to content

Commit

Permalink
Publish CoreCLR packages (dotnet#1090)
Browse files Browse the repository at this point in the history
Add missing _BuildConfig. Pass configuration with Arcade style, at the end for win arg parsing.

Fix build-packages.sh binlog location.

Remove CoreCLR nupkg output redirection.
  • Loading branch information
dagood authored Dec 20, 2019
1 parent 137e282 commit 8690516
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
11 changes: 10 additions & 1 deletion eng/pipelines/coreclr/templates/build-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ parameters:
archType: ''
osGroup: ''
osSubgroup: ''
platform: ''
container: ''
testGroup: ''
crossrootfsDir: ''
Expand All @@ -12,12 +13,14 @@ parameters:
stagedBuild: false
variables: {}
pool: ''
isOfficialBuild: false

### Product build
jobs:
- template: xplat-pipeline-job.yml
parameters:
buildConfig: ${{ parameters.buildConfig }}
_BuildConfig: ${{ parameters.buildConfig }}
archType: ${{ parameters.archType }}
osGroup: ${{ parameters.osGroup }}
osSubgroup: ${{ parameters.osSubgroup }}
Expand Down Expand Up @@ -186,9 +189,15 @@ jobs:
SecretsFilter: 'dotnetfeed-storage-access-key-1,microsoft-symbol-server-pat,symweb-symbol-server-pat'

# Build packages
- script: $(coreClrRepoRootDir)build-packages$(scriptExt) -BuildArch=$(archType) -BuildType=$(_BuildConfig) $(crossPackagesArg) $(officialBuildIdArg) -ci
- script: $(coreClrRepoRootDir)build-packages$(scriptExt) -BuildArch=$(archType) -BuildType=$(_BuildConfig) $(crossPackagesArg) $(officialBuildIdArg) -ci --configuration $(_BuildConfig)
displayName: Build packages

# Save packages using the prepare-signed-artifacts format.
- ${{ if eq(parameters.isOfficialBuild, true) }}:
- template: /eng/pipelines/common/upload-unsigned-artifacts-step.yml
parameters:
name: ${{ parameters.platform }}

# Publish official build
- ${{ if eq(parameters.publishToBlobFeed, 'true') }}:
- ${{ if ne(parameters.osGroup, 'Windows_NT') }}:
Expand Down
2 changes: 2 additions & 0 deletions eng/pipelines/runtime-official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ stages:
- Windows_NT_x64
- Windows_NT_arm
- Windows_NT_arm64
jobParameters:
isOfficialBuild: ${{ variables.isOfficialBuild }}

#
# Build libraries using live CoreLib from CoreCLR
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/build-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ if [ "${__DistroRid}" = "linux-musl-arm64" ]; then
export OutputRID=${__DistroRid}
fi

logFile=$__ProjectRoot/artifacts/log/build-packages.binlog
logFile=$__RepoRootDir/artifacts/log/build-packages.binlog
$__RepoRootDir/eng/common/build.sh -r -b -projects $__ProjectRoot/src/.nuget/packages.builds \
-verbosity minimal -bl:$logFile \
/p:__BuildOS=$__BuildOS \
Expand Down
6 changes: 0 additions & 6 deletions src/coreclr/src/.nuget/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@

<Import Project="../Directory.Build.targets" />

<PropertyGroup>
<!-- Reset PackageOutputPath. The ProjectDefaults targets from Arcade set it to be in the artifacts directory,
but our publishing step currently looks under PackagesBinDir -->
<PackageOutputPath>$(PackagesBinDir)/pkg/</PackageOutputPath>
</PropertyGroup>

<Import Project="$(NuGetPackageRoot)\microsoft.dotnet.build.tasks.packaging\$(MicrosoftDotNetBuildTasksPackagingVersion)\build\Microsoft.DotNet.Build.Tasks.Packaging.targets" />

<!--
Expand Down
3 changes: 0 additions & 3 deletions src/coreclr/src/.nuget/packaging.props
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
<HasCrossTargetComponents Condition="'$(TargetsWindows)' == 'true' and ('$(PackagePlatform)' =='arm64' or '$(PackagePlatform)' =='arm')">true</HasCrossTargetComponents>
<HasCrossTargetComponents Condition="'$(TargetsLinux)' == 'true' and ('$(PackagePlatform)' =='arm64' or '$(PackagePlatform)' =='arm') and '$(__DoCrossArchBuild)' == '1'">true</HasCrossTargetComponents>

<!-- Created package output locations must be kept in sync with eng/build-job.yml -->
<PackageOutputPath>$(PackagesBinDir)/pkg/</PackageOutputPath>
<SymbolPackageOutputPath>$(PackagesBinDir)/symbolpkg/</SymbolPackageOutputPath>
<PackageIndexFile>$(MSBuildThisFileDirectory)/packageIndex.json</PackageIndexFile>

<!-- coreclr doesn't currently use the index so don't force it to be in sync -->
Expand Down

0 comments on commit 8690516

Please sign in to comment.