Skip to content

Commit 8514735

Browse files
[main] Update dependencies from dotnet/arcade (#936)
[main] Update dependencies from dotnet/arcade - Update TFMs to the latest - Fix Gitee - Fix TFM
1 parent 460c350 commit 8514735

File tree

41 files changed

+158
-94
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+158
-94
lines changed

NuGet.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
66
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
77
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
8+
<add key="dotnet8" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json" />
89
</packageSources>
910
<disabledPackageSources>
1011
<clear />

eng/Version.Details.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
</Dependency>
1616
</ProductDependencies>
1717
<ToolsetDependencies>
18-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="8.0.0-beta.22630.1">
18+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="8.0.0-beta.23118.1">
1919
<Uri>https://github.com/dotnet/arcade</Uri>
20-
<Sha>e82404fca08383513e0b0b3c5308d4a9b18b7c7a</Sha>
20+
<Sha>38d3196e1596eb525367ec8d65fcc1f30a58261c</Sha>
2121
</Dependency>
2222
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-reference-packages" Version="8.0.0-alpha.1.23179.1">
2323
<Uri>https://github.com/dotnet/source-build-reference-packages</Uri>

eng/common/cross/build-rootfs.sh

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,14 @@ __UbuntuPackages+=" symlinks"
4848
__UbuntuPackages+=" libicu-dev"
4949
__UbuntuPackages+=" liblttng-ust-dev"
5050
__UbuntuPackages+=" libunwind8-dev"
51+
__UbuntuPackages+=" libnuma-dev"
5152

5253
__AlpinePackages+=" gettext-dev"
5354
__AlpinePackages+=" icu-dev"
5455
__AlpinePackages+=" libunwind-dev"
5556
__AlpinePackages+=" lttng-ust-dev"
5657
__AlpinePackages+=" compiler-rt-static"
58+
__AlpinePackages+=" numactl-dev"
5759

5860
# runtime libraries' dependencies
5961
__UbuntuPackages+=" libcurl4-openssl-dev"
@@ -147,17 +149,17 @@ while :; do
147149
__BuildArch=ppc64le
148150
__UbuntuArch=ppc64el
149151
__UbuntuRepo="http://ports.ubuntu.com/ubuntu-ports/"
150-
__UbuntuPackages=$(echo ${__UbuntuPackages} | sed 's/ libunwind8-dev//')
151-
__UbuntuPackages=$(echo ${__UbuntuPackages} | sed 's/ libomp-dev//')
152-
__UbuntuPackages=$(echo ${__UbuntuPackages} | sed 's/ libomp5//')
152+
__UbuntuPackages="${__UbuntuPackages// libunwind8-dev/}"
153+
__UbuntuPackages="${__UbuntuPackages// libomp-dev/}"
154+
__UbuntuPackages="${__UbuntuPackages// libomp5/}"
153155
unset __LLDB_Package
154156
;;
155157
riscv64)
156158
__BuildArch=riscv64
157159
__UbuntuArch=riscv64
158160
__UbuntuRepo="http://deb.debian.org/debian-ports"
159161
__CodeName=sid
160-
__UbuntuPackages=$(echo ${__UbuntuPackages} | sed 's/ libunwind8-dev//')
162+
__UbuntuPackages="${__UbuntuPackages// libunwind8-dev/}"
161163
unset __LLDB_Package
162164

163165
if [[ -e "/usr/share/keyrings/debian-ports-archive-keyring.gpg" ]]; then
@@ -168,9 +170,9 @@ while :; do
168170
__BuildArch=s390x
169171
__UbuntuArch=s390x
170172
__UbuntuRepo="http://ports.ubuntu.com/ubuntu-ports/"
171-
__UbuntuPackages=$(echo ${__UbuntuPackages} | sed 's/ libunwind8-dev//')
172-
__UbuntuPackages=$(echo ${__UbuntuPackages} | sed 's/ libomp-dev//')
173-
__UbuntuPackages=$(echo ${__UbuntuPackages} | sed 's/ libomp5//')
173+
__UbuntuPackages="${__UbuntuPackages// libunwind8-dev/}"
174+
__UbuntuPackages="${__UbuntuPackages// libomp-dev/}"
175+
__UbuntuPackages="${__UbuntuPackages// libomp5/}"
174176
unset __LLDB_Package
175177
;;
176178
x64)
@@ -310,6 +312,8 @@ done
310312

311313
if [[ "$__BuildArch" == "armel" ]]; then
312314
__LLDB_Package="lldb-3.5-dev"
315+
elif [[ "$__BuildArch" == "arm" && "$__AlpineVersion" == "3.13" ]]; then
316+
__AlpinePackages="${__AlpinePackages//numactl-dev/}"
313317
fi
314318

315319
__UbuntuPackages+=" ${__LLDB_Package:-}"

eng/common/generate-locproject.ps1

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,25 @@ $jsonTemplateFiles | ForEach-Object {
3434
$jsonWinformsTemplateFiles = Get-ChildItem -Recurse -Path "$SourcesDirectory" | Where-Object { $_.FullName -Match "en\\strings\.json" } # current winforms pattern
3535

3636
$wxlFiles = Get-ChildItem -Recurse -Path "$SourcesDirectory" | Where-Object { $_.FullName -Match "\\.+\.wxl" -And -Not( $_.Directory.Name -Match "\d{4}" ) } # localized files live in four digit lang ID directories; this excludes them
37+
if (-not $wxlFiles) {
38+
$wxlEnFiles = Get-ChildItem -Recurse -Path "$SourcesDirectory" | Where-Object { $_.FullName -Match "\\1033\\.+\.wxl" } # pick up en files (1033 = en) specifically so we can copy them to use as the neutral xlf files
39+
if ($wxlEnFiles) {
40+
$wxlFiles = @()
41+
$wxlEnFiles | ForEach-Object {
42+
$destinationFile = "$($_.Directory.Parent.FullName)\$($_.Name)"
43+
$wxlFiles += Copy-Item "$($_.FullName)" -Destination $destinationFile -PassThru
44+
}
45+
}
46+
}
47+
48+
$macosHtmlEnFiles = Get-ChildItem -Recurse -Path "$SourcesDirectory" | Where-Object { $_.FullName -Match "en\.lproj\\.+\.html$" } # add installer HTML files
49+
$macosHtmlFiles = @()
50+
if ($macosHtmlEnFiles) {
51+
$macosHtmlEnFiles | ForEach-Object {
52+
$destinationFile = "$($_.Directory.Parent.FullName)\$($_.Name)"
53+
$macosHtmlFiles += Copy-Item "$($_.FullName)" -Destination $destinationFile -PassThru
54+
}
55+
}
3756

3857
$xlfFiles = @()
3958

@@ -99,8 +118,7 @@ $locJson = @{
99118
$outputPath = "$($_.Directory.FullName | Resolve-Path -Relative)\"
100119
$continue = $true
101120
foreach ($exclusion in $exclusions.Exclusions) {
102-
if ($_.FullName.Contains($exclusion))
103-
{
121+
if ($_.FullName.Contains($exclusion)) {
104122
$continue = $false
105123
}
106124
}
@@ -115,6 +133,35 @@ $locJson = @{
115133
}
116134
}
117135
)
136+
},
137+
@{
138+
LanguageSet = $LanguageSet
139+
CloneLanguageSet = "VS_macOS_CloneLanguages"
140+
LssFiles = @( ".\eng\common\loc\P22DotNetHtmlLocalization.lss" )
141+
LocItems = @(
142+
$macosHtmlFiles | ForEach-Object {
143+
$outputPath = "$($_.Directory.FullName | Resolve-Path -Relative)\"
144+
$continue = $true
145+
foreach ($exclusion in $exclusions.Exclusions) {
146+
if ($_.FullName.Contains($exclusion)) {
147+
$continue = $false
148+
}
149+
}
150+
$sourceFile = ($_.FullName | Resolve-Path -Relative)
151+
$lciFile = $sourceFile + ".lci"
152+
if ($continue) {
153+
$result = @{
154+
SourceFile = $sourceFile
155+
CopyOption = "LangIDOnPath"
156+
OutputPath = $outputPath
157+
}
158+
if (Test-Path $lciFile -PathType Leaf) {
159+
$result["LciFile"] = $lciFile
160+
}
161+
return $result
162+
}
163+
}
164+
)
118165
}
119166
)
120167
}

eng/common/init-tools-native.ps1

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ try {
8383
Select-Object -Expand 'native-tools' -ErrorAction SilentlyContinue
8484
if ($NativeTools) {
8585
if ($PathPromotion -eq $True) {
86-
if ($env:SYSTEM_TEAMPROJECT) { # check to see if we're in an Azure pipelines build
86+
$ArcadeToolsDirectory = "$env:SYSTEMDRIVE\arcade-tools"
87+
if (Test-Path $ArcadeToolsDirectory) { # if this directory exists, we should use native tools on machine
8788
$NativeTools.PSObject.Properties | ForEach-Object {
8889
$ToolName = $_.Name
8990
$ToolVersion = $_.Value
@@ -93,11 +94,6 @@ try {
9394
if ($ToolVersion -eq "latest") {
9495
$ToolVersion = ""
9596
}
96-
$ArcadeToolsDirectory = "C:\arcade-tools"
97-
if (-not (Test-Path $ArcadeToolsDirectory)) {
98-
Write-Error "Arcade tools directory '$ArcadeToolsDirectory' was not found; artifacts were not properly installed."
99-
exit 1
100-
}
10197
$ToolDirectories = (Get-ChildItem -Path "$ArcadeToolsDirectory" -Filter "$ToolName-$ToolVersion*" | Sort-Object -Descending)
10298
if ($ToolDirectories -eq $null) {
10399
Write-Error "Unable to find directory for $ToolName $ToolVersion; please make sure the tool is installed on this image."
@@ -125,6 +121,7 @@ try {
125121

126122
if ((Get-Command "$ToolName" -ErrorAction SilentlyContinue) -eq $null) {
127123
Write-PipelineTelemetryError -Category 'NativeToolsBootstrap' -Message "$ToolName not found on path. Please install $ToolName $ToolVersion before proceeding."
124+
Write-PipelineTelemetryError -Category 'NativeToolsBootstrap' -Message "If this is running on a build machine, the arcade-tools directory was not found, which means there's an error with the image."
128125
}
129126
}
130127
exit 0
3.72 KB
Binary file not shown.

eng/common/native/init-compiler.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ if [ -z "$CLR_CC" ]; then
6363
# Set default versions
6464
if [ -z "$majorVersion" ]; then
6565
# note: gcc (all versions) and clang versions higher than 6 do not have minor version in file name, if it is zero.
66-
if [ "$compiler" = "clang" ]; then versions="15 14 13 12 11 10 9 8 7 6.0 5.0 4.0 3.9 3.8 3.7 3.6 3.5"
66+
if [ "$compiler" = "clang" ]; then versions="16 15 14 13 12 11 10 9 8 7 6.0 5.0 4.0 3.9 3.8 3.7 3.6 3.5"
6767
elif [ "$compiler" = "gcc" ]; then versions="12 11 10 9 8 7 6 5 4.9"; fi
6868

6969
for version in $versions; do

eng/common/templates/job/job.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,16 @@ jobs:
8888
- ${{ if ne(variable.group, '') }}:
8989
- group: ${{ variable.group }}
9090

91+
# handle template variable syntax
92+
# example:
93+
# - template: path/to/template.yml
94+
# parameters:
95+
# [key]: [value]
96+
- ${{ if ne(variable.template, '') }}:
97+
- template: ${{ variable.template }}
98+
${{ if ne(variable.parameters, '') }}:
99+
parameters: ${{ variable.parameters }}
100+
91101
# handle key-value variable syntax.
92102
# example:
93103
# - [key]: [value]
@@ -124,7 +134,7 @@ jobs:
124134
- ${{ if and(eq(parameters.runAsPublic, 'false'), eq(variables['System.TeamProject'], 'internal')) }}:
125135
- task: NuGetAuthenticate@0
126136

127-
- ${{ if or(eq(parameters.artifacts.download, 'true'), ne(parameters.artifacts.download, '')) }}:
137+
- ${{ if and(ne(parameters.artifacts.download, 'false'), ne(parameters.artifacts.download, '')) }}:
128138
- task: DownloadPipelineArtifact@2
129139
inputs:
130140
buildType: current
@@ -161,7 +171,7 @@ jobs:
161171
TeamName: $(_TeamName)
162172

163173
- ${{ if ne(parameters.artifacts.publish, '') }}:
164-
- ${{ if or(eq(parameters.artifacts.publish.artifacts, 'true'), ne(parameters.artifacts.publish.artifacts, '')) }}:
174+
- ${{ if and(ne(parameters.artifacts.publish.artifacts, 'false'), ne(parameters.artifacts.publish.artifacts, '')) }}:
165175
- task: CopyFiles@2
166176
displayName: Gather binaries for publish to artifacts
167177
inputs:
@@ -182,7 +192,7 @@ jobs:
182192
ArtifactName: ${{ coalesce(parameters.artifacts.publish.artifacts.name , 'Artifacts_$(Agent.Os)_$(_BuildConfig)') }}
183193
continueOnError: true
184194
condition: always()
185-
- ${{ if or(eq(parameters.artifacts.publish.logs, 'true'), ne(parameters.artifacts.publish.logs, '')) }}:
195+
- ${{ if and(ne(parameters.artifacts.publish.logs, 'false'), ne(parameters.artifacts.publish.logs, '')) }}:
186196
- publish: artifacts/log
187197
artifact: ${{ coalesce(parameters.artifacts.publish.logs.name, 'Logs_Build_$(Agent.Os)_$(_BuildConfig)') }}
188198
displayName: Publish logs

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

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,12 @@ jobs:
4646
# source-build builds run in Docker, including the default managed platform.
4747
# /eng/common/templates/variables/pool-providers.yml can't be used here (some customers declare variables already), so duplicate its logic
4848
pool:
49-
# Main environments
50-
${{ if and(eq(variables['System.TeamProject'], 'public'), ne(contains(coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranch'], 'refs/heads/main'), 'release'), true)) }}:
51-
name: NetCore-Public
49+
${{ if eq(variables['System.TeamProject'], 'public') }}:
50+
name: $[replace(replace(eq(contains(coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranch'], 'refs/heads/main'), 'release'), 'true'), True, 'NetCore-Svc-Public' ), False, 'NetCore-Public')]
5251
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64.Open
53-
${{ if and(eq(variables['System.TeamProject'], 'internal'), ne(contains(coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranch'], 'refs/heads/main'), 'release'), true)) }}:
54-
name: NetCore1ESPool-Internal
55-
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64
5652

57-
# Servicing build environments
58-
${{ if and(eq(variables['System.TeamProject'], 'public'), contains(coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranch'], 'refs/heads/main'), 'release')) }}:
59-
name: NetCore-Svc-Public
60-
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64.Open
61-
${{ if and(eq(variables['System.TeamProject'], 'internal'), contains(coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranch'], 'refs/heads/main'), 'release')) }}:
62-
name: NetCore1ESPool-Svc-Internal
53+
${{ if eq(variables['System.TeamProject'], 'internal') }}:
54+
name: $[replace(replace(eq(contains(coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranch'], 'refs/heads/main'), 'release'), 'true'), True, 'NetCore1ESPool-Svc-Internal'), False, 'NetCore1ESPool-Internal')]
6355
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64
6456

6557
${{ if ne(parameters.platform.pool, '') }}:

eng/common/templates/job/source-index-stage1.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
parameters:
22
runAsPublic: false
3-
sourceIndexPackageVersion: 1.0.1-20220804.1
3+
sourceIndexPackageVersion: 1.0.1-20221220.2
44
sourceIndexPackageSource: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json
55
sourceIndexBuildCommand: powershell -NoLogo -NoProfile -ExecutionPolicy Bypass -Command "eng/common/build.ps1 -restore -build -binarylog -ci"
66
preSteps: []
@@ -40,10 +40,10 @@ jobs:
4040
- ${{ preStep }}
4141

4242
- task: UseDotNet@2
43-
displayName: Use .NET Core sdk 3.1
43+
displayName: Use .NET Core SDK 6
4444
inputs:
4545
packageType: sdk
46-
version: 3.1.x
46+
version: 6.0.x
4747
installationPath: $(Agent.TempDirectory)/dotnet
4848
workingDirectory: $(Agent.TempDirectory)
4949

0 commit comments

Comments
 (0)