Skip to content

Commit ad168c4

Browse files
Update dependencies from https://github.com/dotnet/arcade build 20241001.6 (#615)
[dotnet/main-19.x] Update dependencies from dotnet/arcade
1 parent c703ef3 commit ad168c4

File tree

12 files changed

+131
-79
lines changed

12 files changed

+131
-79
lines changed

eng/Version.Details.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@
88
</Dependency>
99
</ProductDependencies>
1010
<ToolsetDependencies>
11-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="9.0.0-beta.24423.2">
11+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="10.0.0-beta.24501.6">
1212
<Uri>https://github.com/dotnet/arcade</Uri>
13-
<Sha>91599268652b51969b8d8088d4f2f2ba7b3ebb19</Sha>
13+
<Sha>121ea593b1d0860ae0e5f5747850a60b23cc2968</Sha>
1414
</Dependency>
1515
<!-- Intermediate is necessary for source build. -->
16-
<Dependency Name="Microsoft.SourceBuild.Intermediate.arcade" Version="9.0.0-beta.24423.2">
16+
<Dependency Name="Microsoft.SourceBuild.Intermediate.arcade" Version="10.0.0-beta.24501.6">
1717
<Uri>https://github.com/dotnet/arcade</Uri>
18-
<Sha>91599268652b51969b8d8088d4f2f2ba7b3ebb19</Sha>
18+
<Sha>121ea593b1d0860ae0e5f5747850a60b23cc2968</Sha>
1919
<SourceBuild RepoName="arcade" ManagedOnly="true" />
2020
</Dependency>
21-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="9.0.0-beta.24423.2">
21+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="10.0.0-beta.24501.6">
2222
<Uri>https://github.com/dotnet/arcade</Uri>
23-
<Sha>91599268652b51969b8d8088d4f2f2ba7b3ebb19</Sha>
23+
<Sha>121ea593b1d0860ae0e5f5747850a60b23cc2968</Sha>
2424
</Dependency>
25-
<Dependency Name="Microsoft.DotNet.Build.Tasks.Packaging" Version="9.0.0-beta.24423.2">
25+
<Dependency Name="Microsoft.DotNet.Build.Tasks.Packaging" Version="10.0.0-beta.24501.6">
2626
<Uri>https://github.com/dotnet/arcade</Uri>
27-
<Sha>91599268652b51969b8d8088d4f2f2ba7b3ebb19</Sha>
27+
<Sha>121ea593b1d0860ae0e5f5747850a60b23cc2968</Sha>
2828
</Dependency>
2929
</ToolsetDependencies>
3030
</Dependencies>

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
<PreReleaseVersionIteration>1</PreReleaseVersionIteration>
77
</PropertyGroup>
88
<PropertyGroup>
9-
<MicrosoftDotNetBuildTasksPackagingVersion>9.0.0-beta.24423.2</MicrosoftDotNetBuildTasksPackagingVersion>
9+
<MicrosoftDotNetBuildTasksPackagingVersion>10.0.0-beta.24501.6</MicrosoftDotNetBuildTasksPackagingVersion>
1010
</PropertyGroup>
1111
</Project>

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

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ parameters:
1919
# publishing defaults
2020
artifacts: ''
2121
enableMicrobuild: false
22+
enableMicrobuildForMacAndLinux: false
2223
enablePublishBuildArtifacts: false
2324
enablePublishBuildAssets: false
2425
enablePublishTestResults: false
@@ -134,11 +135,26 @@ jobs:
134135
signType: $(_SignType)
135136
zipSources: false
136137
feedSource: https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json
138+
${{ if and(eq(parameters.enableMicrobuildForMacAndLinux, 'true'), ne(variables['Agent.Os'], 'Windows_NT')) }}:
139+
azureSubscription: 'MicroBuild Signing Task (DevDiv)'
137140
env:
138141
TeamName: $(_TeamName)
139142
MicroBuildOutputFolderOverride: '$(Agent.TempDirectory)'
143+
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
140144
continueOnError: ${{ parameters.continueOnError }}
141-
condition: and(succeeded(), in(variables['_SignType'], 'real', 'test'), eq(variables['Agent.Os'], 'Windows_NT'))
145+
condition: and(
146+
succeeded(),
147+
or(
148+
and(
149+
eq(variables['Agent.Os'], 'Windows_NT'),
150+
in(variables['_SignType'], 'real', 'test')
151+
),
152+
and(
153+
${{ eq(parameters.enableMicrobuildForMacAndLinux, true) }},
154+
ne(variables['Agent.Os'], 'Windows_NT'),
155+
eq(variables['_SignType'], 'real')
156+
)
157+
))
142158

143159
- ${{ if and(eq(parameters.runAsPublic, 'false'), eq(variables['System.TeamProject'], 'internal')) }}:
144160
- task: NuGetAuthenticate@1
@@ -171,7 +187,19 @@ jobs:
171187
- ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
172188
- task: MicroBuildCleanup@1
173189
displayName: Execute Microbuild cleanup tasks
174-
condition: and(always(), in(variables['_SignType'], 'real', 'test'), eq(variables['Agent.Os'], 'Windows_NT'))
190+
condition: and(
191+
always(),
192+
or(
193+
and(
194+
eq(variables['Agent.Os'], 'Windows_NT'),
195+
in(variables['_SignType'], 'real', 'test')
196+
),
197+
and(
198+
${{ eq(parameters.enableMicrobuildForMacAndLinux, true) }},
199+
ne(variables['Agent.Os'], 'Windows_NT'),
200+
eq(variables['_SignType'], 'real')
201+
)
202+
))
175203
continueOnError: ${{ parameters.continueOnError }}
176204
env:
177205
TeamName: $(_TeamName)
Lines changed: 5 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
parameters:
22
runAsPublic: false
3-
sourceIndexUploadPackageVersion: 2.0.0-20240522.1
4-
sourceIndexProcessBinlogPackageVersion: 1.0.1-20240522.1
5-
sourceIndexPackageSource: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json
63
sourceIndexBuildCommand: powershell -NoLogo -NoProfile -ExecutionPolicy Bypass -Command "eng/common/build.ps1 -restore -build -binarylog -ci"
74
preSteps: []
85
binlogPath: artifacts/log/Debug/Build.binlog
@@ -16,12 +13,6 @@ jobs:
1613
dependsOn: ${{ parameters.dependsOn }}
1714
condition: ${{ parameters.condition }}
1815
variables:
19-
- name: SourceIndexUploadPackageVersion
20-
value: ${{ parameters.sourceIndexUploadPackageVersion }}
21-
- name: SourceIndexProcessBinlogPackageVersion
22-
value: ${{ parameters.sourceIndexProcessBinlogPackageVersion }}
23-
- name: SourceIndexPackageSource
24-
value: ${{ parameters.sourceIndexPackageSource }}
2516
- name: BinlogPath
2617
value: ${{ parameters.binlogPath }}
2718
- template: /eng/common/core-templates/variables/pool-providers.yml
@@ -34,48 +25,20 @@ jobs:
3425
pool:
3526
${{ if eq(variables['System.TeamProject'], 'public') }}:
3627
name: $(DncEngPublicBuildPool)
37-
image: 1es-windows-2022-open
38-
os: windows
28+
image: windows.vs2022.amd64.open
3929
${{ if eq(variables['System.TeamProject'], 'internal') }}:
4030
name: $(DncEngInternalBuildPool)
41-
image: 1es-windows-2022
42-
os: windows
31+
image: windows.vs2022.amd64
4332

4433
steps:
4534
- ${{ if eq(parameters.is1ESPipeline, '') }}:
4635
- 'Illegal entry point, is1ESPipeline is not defined. Repository yaml should not directly reference templates in core-templates folder.': error
4736

4837
- ${{ each preStep in parameters.preSteps }}:
4938
- ${{ preStep }}
50-
51-
- task: UseDotNet@2
52-
displayName: Use .NET 8 SDK
53-
inputs:
54-
packageType: sdk
55-
version: 8.0.x
56-
installationPath: $(Agent.TempDirectory)/dotnet
57-
workingDirectory: $(Agent.TempDirectory)
58-
59-
- script: |
60-
$(Agent.TempDirectory)/dotnet/dotnet tool install BinLogToSln --version $(sourceIndexProcessBinlogPackageVersion) --add-source $(SourceIndexPackageSource) --tool-path $(Agent.TempDirectory)/.source-index/tools
61-
$(Agent.TempDirectory)/dotnet/dotnet tool install UploadIndexStage1 --version $(sourceIndexUploadPackageVersion) --add-source $(SourceIndexPackageSource) --tool-path $(Agent.TempDirectory)/.source-index/tools
62-
displayName: Download Tools
63-
# Set working directory to temp directory so 'dotnet' doesn't try to use global.json and use the repo's sdk.
64-
workingDirectory: $(Agent.TempDirectory)
65-
6639
- script: ${{ parameters.sourceIndexBuildCommand }}
6740
displayName: Build Repository
6841

69-
- script: $(Agent.TempDirectory)/.source-index/tools/BinLogToSln -i $(BinlogPath) -r $(Build.SourcesDirectory) -n $(Build.Repository.Name) -o .source-index/stage1output
70-
displayName: Process Binlog into indexable sln
71-
72-
- ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
73-
- task: AzureCLI@2
74-
displayName: Log in to Azure and upload stage1 artifacts to source index
75-
inputs:
76-
azureSubscription: 'SourceDotNet Stage1 Publish'
77-
addSpnToEnvironment: true
78-
scriptType: 'ps'
79-
scriptLocation: 'inlineScript'
80-
inlineScript: |
81-
$(Agent.TempDirectory)/.source-index/tools/UploadIndexStage1 -i .source-index/stage1output -n $(Build.Repository.Name) -s netsourceindexstage1 -b stage1
42+
- template: /eng/common/core-templates/steps/source-index-stage1-publish.yml
43+
parameters:
44+
binLogPath: ${{ parameters.binLogPath }}

eng/common/core-templates/steps/publish-logs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ steps:
3434
'$(akams-client-id)'
3535
'$(microsoft-symbol-server-pat)'
3636
'$(symweb-symbol-server-pat)'
37+
'$(dnceng-symbol-server-pat)'
3738
'$(dn-bot-all-orgs-build-rw-code-rw)'
39+
'$(System.AccessToken)'
3840
${{parameters.CustomSensitiveDataList}}
3941
continueOnError: true
4042
condition: always()
@@ -45,6 +47,7 @@ steps:
4547
SourceFolder: '$(Build.SourcesDirectory)/PostBuildLogs'
4648
Contents: '**'
4749
TargetFolder: '$(Build.ArtifactStagingDirectory)/PostBuildLogs'
50+
condition: always()
4851

4952
- template: /eng/common/core-templates/steps/publish-build-artifacts.yml
5053
parameters:
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
parameters:
2+
sourceIndexUploadPackageVersion: 2.0.0-20240522.1
3+
sourceIndexProcessBinlogPackageVersion: 1.0.1-20240522.1
4+
sourceIndexPackageSource: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json
5+
binlogPath: artifacts/log/Debug/Build.binlog
6+
7+
steps:
8+
- task: UseDotNet@2
9+
displayName: "Source Index: Use .NET 8 SDK"
10+
inputs:
11+
packageType: sdk
12+
version: 8.0.x
13+
installationPath: $(Agent.TempDirectory)/dotnet
14+
workingDirectory: $(Agent.TempDirectory)
15+
16+
- script: |
17+
$(Agent.TempDirectory)/dotnet/dotnet tool install BinLogToSln --version ${{parameters.sourceIndexProcessBinlogPackageVersion}} --add-source ${{parameters.SourceIndexPackageSource}} --tool-path $(Agent.TempDirectory)/.source-index/tools
18+
$(Agent.TempDirectory)/dotnet/dotnet tool install UploadIndexStage1 --version ${{parameters.sourceIndexUploadPackageVersion}} --add-source ${{parameters.SourceIndexPackageSource}} --tool-path $(Agent.TempDirectory)/.source-index/tools
19+
displayName: "Source Index: Download netsourceindex Tools"
20+
# Set working directory to temp directory so 'dotnet' doesn't try to use global.json and use the repo's sdk.
21+
workingDirectory: $(Agent.TempDirectory)
22+
23+
- script: $(Agent.TempDirectory)/.source-index/tools/BinLogToSln -i ${{parameters.BinlogPath}} -r $(Build.SourcesDirectory) -n $(Build.Repository.Name) -o .source-index/stage1output
24+
displayName: "Source Index: Process Binlog into indexable sln"
25+
26+
- ${{ if and(ne(parameters.runAsPublic, 'true'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
27+
- task: AzureCLI@2
28+
displayName: "Source Index: Upload Source Index stage1 artifacts to Azure"
29+
inputs:
30+
azureSubscription: 'SourceDotNet Stage1 Publish'
31+
addSpnToEnvironment: true
32+
scriptType: 'ps'
33+
scriptLocation: 'inlineScript'
34+
inlineScript: |
35+
$(Agent.TempDirectory)/.source-index/tools/UploadIndexStage1 -i .source-index/stage1output -n $(Build.Repository.Name) -s netsourceindexstage1 -b stage1

eng/common/cross/build-rootfs.sh

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ __UbuntuPackages+=" libcurl4-openssl-dev"
6666
__UbuntuPackages+=" libkrb5-dev"
6767
__UbuntuPackages+=" libssl-dev"
6868
__UbuntuPackages+=" zlib1g-dev"
69+
__UbuntuPackages+=" libbrotli-dev"
6970

7071
__AlpinePackages+=" curl-dev"
7172
__AlpinePackages+=" krb5-dev"
@@ -91,18 +92,18 @@ __HaikuPackages="gcc_syslibs"
9192
__HaikuPackages+=" gcc_syslibs_devel"
9293
__HaikuPackages+=" gmp"
9394
__HaikuPackages+=" gmp_devel"
94-
__HaikuPackages+=" icu66"
95-
__HaikuPackages+=" icu66_devel"
95+
__HaikuPackages+=" icu[0-9]+"
96+
__HaikuPackages+=" icu[0-9]*_devel"
9697
__HaikuPackages+=" krb5"
9798
__HaikuPackages+=" krb5_devel"
9899
__HaikuPackages+=" libiconv"
99100
__HaikuPackages+=" libiconv_devel"
100-
__HaikuPackages+=" llvm12_libunwind"
101-
__HaikuPackages+=" llvm12_libunwind_devel"
101+
__HaikuPackages+=" llvm[0-9]*_libunwind"
102+
__HaikuPackages+=" llvm[0-9]*_libunwind_devel"
102103
__HaikuPackages+=" mpfr"
103104
__HaikuPackages+=" mpfr_devel"
104-
__HaikuPackages+=" openssl"
105-
__HaikuPackages+=" openssl_devel"
105+
__HaikuPackages+=" openssl3"
106+
__HaikuPackages+=" openssl3_devel"
106107
__HaikuPackages+=" zlib"
107108
__HaikuPackages+=" zlib_devel"
108109

@@ -496,7 +497,7 @@ if [[ "$__CodeName" == "alpine" ]]; then
496497
arch="$(uname -m)"
497498

498499
ensureDownloadTool
499-
500+
500501
if [[ "$__hasWget" == 1 ]]; then
501502
wget -P "$__ApkToolsDir" "https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v$__ApkToolsVersion/$arch/apk.static"
502503
else
@@ -681,7 +682,7 @@ elif [[ "$__CodeName" == "haiku" ]]; then
681682

682683
ensureDownloadTool
683684

684-
echo "Downloading Haiku package tool"
685+
echo "Downloading Haiku package tools"
685686
git clone https://github.com/haiku/haiku-toolchains-ubuntu --depth 1 "$__RootfsDir/tmp/script"
686687
if [[ "$__hasWget" == 1 ]]; then
687688
wget -O "$__RootfsDir/tmp/download/hosttools.zip" "$("$__RootfsDir/tmp/script/fetch.sh" --hosttools)"
@@ -691,34 +692,42 @@ elif [[ "$__CodeName" == "haiku" ]]; then
691692

692693
unzip -o "$__RootfsDir/tmp/download/hosttools.zip" -d "$__RootfsDir/tmp/bin"
693694

694-
DepotBaseUrl="https://depot.haiku-os.org/__api/v2/pkg/get-pkg"
695-
HpkgBaseUrl="https://eu.hpkg.haiku-os.org/haiku/master/$__HaikuArch/current"
695+
HaikuBaseUrl="https://eu.hpkg.haiku-os.org/haiku/master/$__HaikuArch/current"
696+
HaikuPortsBaseUrl="https://eu.hpkg.haiku-os.org/haikuports/master/$__HaikuArch/current"
697+
698+
echo "Downloading HaikuPorts package repository index..."
699+
if [[ "$__hasWget" == 1 ]]; then
700+
wget -P "$__RootfsDir/tmp/download" "$HaikuPortsBaseUrl/repo"
701+
else
702+
curl -SLO --create-dirs --output-dir "$__RootfsDir/tmp/download" "$HaikuPortsBaseUrl/repo"
703+
fi
696704

697-
# Download Haiku packages
698705
echo "Downloading Haiku packages"
699706
read -ra array <<<"$__HaikuPackages"
700707
for package in "${array[@]}"; do
701708
echo "Downloading $package..."
702-
# API documented here: https://github.com/haiku/haikudepotserver/blob/master/haikudepotserver-api2/src/main/resources/api2/pkg.yaml#L60
703-
# The schema here: https://github.com/haiku/haikudepotserver/blob/master/haikudepotserver-api2/src/main/resources/api2/pkg.yaml#L598
709+
hpkgFilename="$(LD_LIBRARY_PATH="$__RootfsDir/tmp/bin" "$__RootfsDir/tmp/bin/package_repo" list -f "$__RootfsDir/tmp/download/repo" |
710+
grep -E "${package}-" | sort -V | tail -n 1 | xargs)"
711+
if [ -z "$hpkgFilename" ]; then
712+
>&2 echo "ERROR: package $package missing."
713+
exit 1
714+
fi
715+
echo "Resolved filename: $hpkgFilename..."
716+
hpkgDownloadUrl="$HaikuPortsBaseUrl/packages/$hpkgFilename"
704717
if [[ "$__hasWget" == 1 ]]; then
705-
hpkgDownloadUrl="$(wget -qO- --post-data '{"name":"'"$package"'","repositorySourceCode":"haikuports_'$__HaikuArch'","versionType":"LATEST","naturalLanguageCode":"en"}' \
706-
--header 'Content-Type:application/json' "$DepotBaseUrl" | jq -r '.result.versions[].hpkgDownloadURL')"
707718
wget -P "$__RootfsDir/tmp/download" "$hpkgDownloadUrl"
708719
else
709-
hpkgDownloadUrl="$(curl -sSL -XPOST --data '{"name":"'"$package"'","repositorySourceCode":"haikuports_'$__HaikuArch'","versionType":"LATEST","naturalLanguageCode":"en"}' \
710-
--header 'Content-Type:application/json' "$DepotBaseUrl" | jq -r '.result.versions[].hpkgDownloadURL')"
711720
curl -SLO --create-dirs --output-dir "$__RootfsDir/tmp/download" "$hpkgDownloadUrl"
712721
fi
713722
done
714723
for package in haiku haiku_devel; do
715724
echo "Downloading $package..."
716725
if [[ "$__hasWget" == 1 ]]; then
717-
hpkgVersion="$(wget -qO- "$HpkgBaseUrl" | sed -n 's/^.*version: "\([^"]*\)".*$/\1/p')"
718-
wget -P "$__RootfsDir/tmp/download" "$HpkgBaseUrl/packages/$package-$hpkgVersion-1-$__HaikuArch.hpkg"
726+
hpkgVersion="$(wget -qO- "$HaikuBaseUrl" | sed -n 's/^.*version: "\([^"]*\)".*$/\1/p')"
727+
wget -P "$__RootfsDir/tmp/download" "$HaikuBaseUrl/packages/$package-$hpkgVersion-1-$__HaikuArch.hpkg"
719728
else
720-
hpkgVersion="$(curl -sSL "$HpkgBaseUrl" | sed -n 's/^.*version: "\([^"]*\)".*$/\1/p')"
721-
curl -SLO --create-dirs --output-dir "$__RootfsDir/tmp/download" "$HpkgBaseUrl/packages/$package-$hpkgVersion-1-$__HaikuArch.hpkg"
729+
hpkgVersion="$(curl -sSL "$HaikuBaseUrl" | sed -n 's/^.*version: "\([^"]*\)".*$/\1/p')"
730+
curl -SLO --create-dirs --output-dir "$__RootfsDir/tmp/download" "$HaikuBaseUrl/packages/$package-$hpkgVersion-1-$__HaikuArch.hpkg"
722731
fi
723732
done
724733

eng/common/template-guidance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ extends:
5757
5858
Note: Multiple outputs are ONLY applicable to 1ES PT publishing (only usable when referencing `templates-official`).
5959

60-
# Development notes
60+
## Development notes
6161

6262
**Folder / file structure**
6363

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
steps:
2+
- template: /eng/common/core-templates/steps/source-index-stage1-publish.yml
3+
parameters:
4+
is1ESPipeline: true
5+
6+
${{ each parameter in parameters }}:
7+
${{ parameter.key }}: ${{ parameter.value }}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
steps:
2+
- template: /eng/common/core-templates/steps/source-index-stage1-publish.yml
3+
parameters:
4+
is1ESPipeline: false
5+
6+
${{ each parameter in parameters }}:
7+
${{ parameter.key }}: ${{ parameter.value }}

0 commit comments

Comments
 (0)