Skip to content

Commit 1c4a3a4

Browse files
Update dependencies from https://github.com/dotnet/arcade build 20250518.1 (#4858)
Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Helix.Sdk From Version 10.0.0-beta.25210.1 -> To Version 10.0.0-beta.25268.1 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
1 parent 6f98a41 commit 1c4a3a4

20 files changed

+654
-129
lines changed

eng/Version.Details.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
</Dependency>
3232
</ProductDependencies>
3333
<ToolsetDependencies>
34-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="10.0.0-beta.25210.1">
34+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="10.0.0-beta.25268.1">
3535
<Uri>https://github.com/dotnet/arcade</Uri>
36-
<Sha>490307dc9bb09caf016b2fa96005ac8aaa89c4e7</Sha>
36+
<Sha>35a34fa5ab9b2f97d3f7bdf48a7c2100727308b3</Sha>
3737
</Dependency>
38-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="10.0.0-beta.25210.1">
38+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="10.0.0-beta.25268.1">
3939
<Uri>https://github.com/dotnet/arcade</Uri>
40-
<Sha>490307dc9bb09caf016b2fa96005ac8aaa89c4e7</Sha>
40+
<Sha>35a34fa5ab9b2f97d3f7bdf48a7c2100727308b3</Sha>
4141
</Dependency>
4242
<Dependency Name="Microsoft.DotNet.XHarness.CLI" Version="10.0.0-prerelease.25262.1">
4343
<Uri>https://github.com/dotnet/xharness</Uri>

eng/common/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,14 @@ while [[ $# > 0 ]]; do
129129
-pack)
130130
pack=true
131131
;;
132-
-sourcebuild|-sb)
132+
-sourcebuild|-source-build|-sb)
133133
build=true
134134
source_build=true
135135
product_build=true
136136
restore=true
137137
pack=true
138138
;;
139-
-productBuild|-pb)
139+
-productbuild|-product-build|-pb)
140140
build=true
141141
product_build=true
142142
restore=true

eng/common/core-templates/job/source-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ parameters:
2727
# Specifies the build script to invoke to perform the build in the repo. The default
2828
# './build.sh' should work for typical Arcade repositories, but this is customizable for
2929
# difficult situations.
30+
# buildArguments: ''
31+
# Specifies additional build arguments to pass to the build script.
3032
# jobProperties: {}
3133
# A list of job properties to inject at the top level, for potential extensibility beyond
3234
# container and pool.

eng/common/core-templates/jobs/jobs.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ parameters:
2727
# Optional: Publish the assets as soon as the publish to BAR stage is complete, rather doing so in a separate stage.
2828
publishAssetsImmediately: false
2929

30+
# Optional: 🌤️ or not the build has assets it wants to publish to BAR
31+
isAssetlessBuild: false
32+
3033
# Optional: If using publishAssetsImmediately and additional parameters are needed, can be used to send along additional parameters (normally sent to post-build.yml)
3134
artifactsPublishingAdditionalParameters: ''
3235
signingValidationAdditionalParameters: ''
@@ -93,7 +96,7 @@ jobs:
9396
${{ parameter.key }}: ${{ parameter.value }}
9497

9598
- ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
96-
- ${{ if or(eq(parameters.enablePublishBuildAssets, true), eq(parameters.artifacts.publish.manifests, 'true'), ne(parameters.artifacts.publish.manifests, '')) }}:
99+
- ${{ if or(eq(parameters.enablePublishBuildAssets, true), eq(parameters.artifacts.publish.manifests, 'true'), ne(parameters.artifacts.publish.manifests, ''), eq(parameters.isAssetlessBuild, true)) }}:
97100
- template: ../job/publish-build-assets.yml
98101
parameters:
99102
is1ESPipeline: ${{ parameters.is1ESPipeline }}
@@ -109,7 +112,8 @@ jobs:
109112
- Source_Build_Complete
110113

111114
runAsPublic: ${{ parameters.runAsPublic }}
112-
publishAssetsImmediately: ${{ parameters.publishAssetsImmediately }}
115+
publishAssetsImmediately: ${{ or(parameters.publishAssetsImmediately, parameters.isAssetlessBuild) }}
116+
isAssetlessBuild: ${{ parameters.isAssetlessBuild }}
113117
enablePublishBuildArtifacts: ${{ parameters.enablePublishBuildArtifacts }}
114118
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
115119
signingValidationAdditionalParameters: ${{ parameters.signingValidationAdditionalParameters }}

eng/common/core-templates/jobs/source-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ parameters:
1414
# This is the default platform provided by Arcade, intended for use by a managed-only repo.
1515
defaultManagedPlatform:
1616
name: 'Managed'
17-
container: 'mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream9'
17+
container: 'mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream-10-amd64'
1818

1919
# Defines the platforms on which to run build jobs. One job is created for each platform, and the
2020
# object in this array is sent to the job template as 'platform'. If no platforms are specified,

eng/common/core-templates/steps/install-microbuild.yml

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,6 @@ parameters:
1111
steps:
1212
- ${{ if eq(parameters.enableMicrobuild, 'true') }}:
1313
- ${{ if eq(parameters.enableMicrobuildForMacAndLinux, 'true') }}:
14-
# Install Python 3.12.x on when Python > 3.12.x is installed - https://github.com/dotnet/source-build/issues/4802
15-
- script: |
16-
version=$(python3 --version | awk '{print $2}')
17-
major=$(echo $version | cut -d. -f1)
18-
minor=$(echo $version | cut -d. -f2)
19-
20-
installPython=false
21-
if [ "$major" -gt 3 ] || { [ "$major" -eq 3 ] && [ "$minor" -gt 12 ]; }; then
22-
installPython=true
23-
fi
24-
25-
echo "Python version: $version."
26-
echo "Install Python 3.12.x: $installPython."
27-
echo "##vso[task.setvariable variable=installPython;isOutput=true]$installPython"
28-
name: InstallPython
29-
displayName: 'Determine Python installation'
30-
condition: and(succeeded(), ne(variables['Agent.Os'], 'Windows_NT'))
31-
32-
- task: UsePythonVersion@0
33-
inputs:
34-
versionSpec: '3.12.x'
35-
displayName: 'Use Python 3.12.x'
36-
condition: and(succeeded(), eq(variables['InstallPython.installPython'], 'true'), ne(variables['Agent.Os'], 'Windows_NT'))
37-
3814
# Needed to download the MicroBuild plugin nupkgs on Mac and Linux when nuget.exe is unavailable
3915
- task: UseDotNet@2
4016
displayName: Install .NET 8.0 SDK for MicroBuild Plugin
@@ -91,8 +67,18 @@ steps:
9167
script: |
9268
Write-Host "Copying Linux Path"
9369
$MBSIGN_APPFOLDER = '$(MBSIGN_APPFOLDER)'
94-
$MBSIGN_APPFOLDER = $MBSIGN_APPFOLDER -replace '/build', ''
95-
$MBSIGN_APPFOLDER = $MBSIGN_APPFOLDER + '/1.1.1032' + '/build'
70+
$MBSIGN_APPFOLDER = ($MBSIGN_APPFOLDER -replace '/build', '')
71+
72+
$versionRegex = '\d+\.\d+\.\d+'
73+
$package = Get-ChildItem -Path $MBSIGN_APPFOLDER -Directory |
74+
Where-Object { $_.Name -match $versionRegex }
75+
76+
if ($package.Count -ne 1) {
77+
Write-Host "There should be exactly one matching subfolder, but found $($package.Count)."
78+
exit 1
79+
}
80+
81+
$MBSIGN_APPFOLDER = $package[0].FullName + '/build'
9682
$MBSIGN_APPFOLDER | Write-Host
9783
$SignConfigPath = $MBSIGN_APPFOLDER + '/signconfig.xml'
9884
Copy-Item -Path "$(MBSIGN_APPFOLDER)/signconfig.xml" -Destination $SignConfigPath -Force

eng/common/core-templates/steps/source-build.yml

Lines changed: 8 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,6 @@ steps:
1919
set -x
2020
df -h
2121
22-
# If file changes are detected, set CopyWipIntoInnerSourceBuildRepo to copy the WIP changes into the inner source build repo.
23-
internalRestoreArgs=
24-
if ! git diff --quiet; then
25-
internalRestoreArgs='/p:CopyWipIntoInnerSourceBuildRepo=true'
26-
# The 'Copy WIP' feature of source build uses git stash to apply changes from the original repo.
27-
# This only works if there is a username/email configured, which won't be the case in most CI runs.
28-
git config --get user.email
29-
if [ $? -ne 0 ]; then
30-
git config user.email [email protected]
31-
git config user.name dn-bot
32-
fi
33-
fi
34-
3522
# If building on the internal project, the internal storage variable may be available (usually only if needed)
3623
# In that case, add variables to allow the download of internal runtimes if the specified versions are not found
3724
# in the default public locations.
@@ -46,34 +33,14 @@ steps:
4633
buildConfig='$(_BuildConfig)'
4734
fi
4835
49-
officialBuildArgs=
50-
if [ '${{ and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}' = 'True' ]; then
51-
officialBuildArgs='/p:DotNetPublishUsingPipelines=true /p:OfficialBuildId=$(BUILD.BUILDNUMBER)'
52-
fi
53-
5436
targetRidArgs=
5537
if [ '${{ parameters.platform.targetRID }}' != '' ]; then
5638
targetRidArgs='/p:TargetRid=${{ parameters.platform.targetRID }}'
5739
fi
5840
59-
runtimeOsArgs=
60-
if [ '${{ parameters.platform.runtimeOS }}' != '' ]; then
61-
runtimeOsArgs='/p:RuntimeOS=${{ parameters.platform.runtimeOS }}'
62-
fi
63-
64-
baseOsArgs=
65-
if [ '${{ parameters.platform.baseOS }}' != '' ]; then
66-
baseOsArgs='/p:BaseOS=${{ parameters.platform.baseOS }}'
67-
fi
68-
69-
publishArgs=
70-
if [ '${{ parameters.platform.skipPublishValidation }}' != 'true' ]; then
71-
publishArgs='--publish'
72-
fi
73-
74-
assetManifestFileName=SourceBuild_RidSpecific.xml
75-
if [ '${{ parameters.platform.name }}' != '' ]; then
76-
assetManifestFileName=SourceBuild_${{ parameters.platform.name }}.xml
41+
baseRidArgs=
42+
if [ '${{ parameters.platform.baseRID }}' != '' ]; then
43+
baseRidArgs='/p:BaseRid=${{ parameters.platform.baseRID }}'
7744
fi
7845
7946
portableBuildArgs=
@@ -83,51 +50,22 @@ steps:
8350
8451
${{ coalesce(parameters.platform.buildScript, './build.sh') }} --ci \
8552
--configuration $buildConfig \
86-
--restore --build --pack $publishArgs -bl \
87-
$officialBuildArgs \
53+
--restore --build --pack -bl \
54+
--source-build \
55+
${{ parameters.platform.buildArguments }} \
8856
$internalRuntimeDownloadArgs \
89-
$internalRestoreArgs \
9057
$targetRidArgs \
91-
$runtimeOsArgs \
92-
$baseOsArgs \
58+
$baseRidArgs \
9359
$portableBuildArgs \
94-
/p:DotNetBuildSourceOnly=true \
95-
/p:DotNetBuildRepo=true \
96-
/p:AssetManifestFileName=$assetManifestFileName
9760
displayName: Build
9861

99-
# Upload build logs for diagnosis.
100-
- task: CopyFiles@2
101-
displayName: Prepare BuildLogs staging directory
102-
inputs:
103-
SourceFolder: '$(Build.SourcesDirectory)'
104-
Contents: |
105-
**/*.log
106-
**/*.binlog
107-
artifacts/sb/prebuilt-report/**
108-
TargetFolder: '$(Build.StagingDirectory)/BuildLogs'
109-
CleanTargetFolder: true
110-
continueOnError: true
111-
condition: succeededOrFailed()
112-
11362
- template: /eng/common/core-templates/steps/publish-pipeline-artifacts.yml
11463
parameters:
11564
is1ESPipeline: ${{ parameters.is1ESPipeline }}
11665
args:
11766
displayName: Publish BuildLogs
118-
targetPath: '$(Build.StagingDirectory)/BuildLogs'
67+
targetPath: artifacts/log/${{ coalesce(variables._BuildConfig, 'Release') }}
11968
artifactName: BuildLogs_SourceBuild_${{ parameters.platform.name }}_Attempt$(System.JobAttempt)
12069
continueOnError: true
12170
condition: succeededOrFailed()
12271
sbomEnabled: false # we don't need SBOM for logs
123-
124-
# Manually inject component detection so that we can ignore the source build upstream cache, which contains
125-
# a nupkg cache of input packages (a local feed).
126-
# This path must match the upstream cache path in property 'CurrentRepoSourceBuiltNupkgCacheDir'
127-
# in src\Microsoft.DotNet.Arcade.Sdk\tools\SourceBuild\SourceBuildArcade.targets
128-
- template: /eng/common/core-templates/steps/component-governance.yml
129-
parameters:
130-
displayName: Component Detection (Exclude upstream cache)
131-
is1ESPipeline: ${{ parameters.is1ESPipeline }}
132-
componentGovernanceIgnoreDirectories: '$(Build.SourcesDirectory)/artifacts/sb/src/artifacts/obj/source-built-upstream-cache'
133-
disableComponentGovernance: ${{ eq(variables['System.TeamProject'], 'public') }}

eng/common/core-templates/steps/source-index-stage1-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
parameters:
2-
sourceIndexUploadPackageVersion: 2.0.0-20240522.1
3-
sourceIndexProcessBinlogPackageVersion: 1.0.1-20240522.1
2+
sourceIndexUploadPackageVersion: 2.0.0-20250425.2
3+
sourceIndexProcessBinlogPackageVersion: 1.0.1-20250425.2
44
sourceIndexPackageSource: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json
55
binlogPath: artifacts/log/Debug/Build.binlog
66

eng/common/cross/tizen-fetch.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,8 @@ fetch_tizen_pkgs()
156156
done
157157
}
158158

159-
if [ "$TIZEN_ARCH" == "riscv64" ]; then
160-
BASE="Tizen-Base-RISCV"
161-
UNIFIED="Tizen-Unified-RISCV"
162-
else
163-
BASE="Tizen-Base"
164-
UNIFIED="Tizen-Unified"
165-
fi
159+
BASE="Tizen-Base"
160+
UNIFIED="Tizen-Unified"
166161

167162
Inform "Initialize ${TIZEN_ARCH} base"
168163
fetch_tizen_pkgs_init standard $BASE

eng/common/darc-init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function InstallDarcCli {
6868
fi
6969
fi
7070

71-
local arcadeServicesSource="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json"
71+
local arcadeServicesSource="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json"
7272

7373
echo "Installing Darc CLI version $darcVersion..."
7474
echo "You may need to restart your command shell if this is the first dotnet tool you have installed."

0 commit comments

Comments
 (0)