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.
archType: ''
osGroup: ''
osSubgroup: ''
+ platform: ''
container: ''
testGroup: ''
crossrootfsDir: ''
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 }}
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') }}:
- Windows_NT_x64
- Windows_NT_arm
- Windows_NT_arm64
+ jobParameters:
+ isOfficialBuild: ${{ variables.isOfficialBuild }}
#
# Build libraries using live CoreLib from CoreCLR
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 \
<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" />
<!--
<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 -->