Skip to content
This repository was archived by the owner on Nov 20, 2023. It is now read-only.

Commit 3edef54

Browse files
Update dependencies from https://github.com/dotnet/arcade build 20220210.7 (#1301)
[main] Update dependencies from dotnet/arcade
1 parent ce7a347 commit 3edef54

10 files changed

+135
-13
lines changed

eng/Version.Details.xml

+10-10
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@
33
<ProductDependencies>
44
</ProductDependencies>
55
<ToolsetDependencies>
6-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.22109.1">
6+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.22110.7">
77
<Uri>https://github.com/dotnet/arcade</Uri>
8-
<Sha>00b6cce8983065a9cf9fb108a724f28ec44eaf75</Sha>
8+
<Sha>78eaf78761027d225030be2b28aaf4e8bf392929</Sha>
99
</Dependency>
10-
<Dependency Name="Microsoft.DotNet.Build.Tasks.Feed" Version="7.0.0-beta.22109.1">
10+
<Dependency Name="Microsoft.DotNet.Build.Tasks.Feed" Version="7.0.0-beta.22110.7">
1111
<Uri>https://github.com/dotnet/arcade</Uri>
12-
<Sha>00b6cce8983065a9cf9fb108a724f28ec44eaf75</Sha>
12+
<Sha>78eaf78761027d225030be2b28aaf4e8bf392929</Sha>
1313
</Dependency>
14-
<Dependency Name="Microsoft.DotNet.SignTool" Version="7.0.0-beta.22109.1">
14+
<Dependency Name="Microsoft.DotNet.SignTool" Version="7.0.0-beta.22110.7">
1515
<Uri>https://github.com/dotnet/arcade</Uri>
16-
<Sha>00b6cce8983065a9cf9fb108a724f28ec44eaf75</Sha>
16+
<Sha>78eaf78761027d225030be2b28aaf4e8bf392929</Sha>
1717
</Dependency>
18-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="7.0.0-beta.22109.1">
18+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="7.0.0-beta.22110.7">
1919
<Uri>https://github.com/dotnet/arcade</Uri>
20-
<Sha>00b6cce8983065a9cf9fb108a724f28ec44eaf75</Sha>
20+
<Sha>78eaf78761027d225030be2b28aaf4e8bf392929</Sha>
2121
</Dependency>
22-
<Dependency Name="Microsoft.DotNet.SwaggerGenerator.MSBuild" Version="7.0.0-beta.22109.1">
22+
<Dependency Name="Microsoft.DotNet.SwaggerGenerator.MSBuild" Version="7.0.0-beta.22110.7">
2323
<Uri>https://github.com/dotnet/arcade</Uri>
24-
<Sha>00b6cce8983065a9cf9fb108a724f28ec44eaf75</Sha>
24+
<Sha>78eaf78761027d225030be2b28aaf4e8bf392929</Sha>
2525
</Dependency>
2626
<Dependency Name="Microsoft.DotNet.Maestro.Client" Version="1.1.0-beta.19556.4">
2727
<Uri>https://github.com/dotnet/arcade-services</Uri>

eng/common/cross/build-rootfs.sh

+9
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,15 @@ while :; do
120120
__UbuntuRepo="http://ftp.debian.org/debian/"
121121
__CodeName=jessie
122122
;;
123+
ppc64le)
124+
__BuildArch=ppc64le
125+
__UbuntuArch=ppc64el
126+
__UbuntuRepo="http://ports.ubuntu.com/ubuntu-ports/"
127+
__UbuntuPackages=$(echo ${__UbuntuPackages} | sed 's/ libunwind8-dev//')
128+
__UbuntuPackages=$(echo ${__UbuntuPackages} | sed 's/ libomp-dev//')
129+
__UbuntuPackages=$(echo ${__UbuntuPackages} | sed 's/ libomp5//')
130+
unset __LLDB_Package
131+
;;
123132
s390x)
124133
__BuildArch=s390x
125134
__UbuntuArch=s390x
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
deb http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted universe
2+
deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted universe
3+
4+
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted universe
5+
deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted universe
6+
7+
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-backports main restricted
8+
deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-backports main restricted
9+
10+
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-security main restricted universe multiverse
11+
deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-security main restricted universe multiverse

eng/common/cross/toolchain.cmake

+5-2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ elseif(TARGET_ARCH_NAME STREQUAL "arm64")
5454
if(TIZEN)
5555
set(TIZEN_TOOLCHAIN "aarch64-tizen-linux-gnu/9.2.0")
5656
endif()
57+
elseif(TARGET_ARCH_NAME STREQUAL "ppc64le")
58+
set(CMAKE_SYSTEM_PROCESSOR ppc64le)
59+
set(TOOLCHAIN "powerpc64le-linux-gnu")
5760
elseif(TARGET_ARCH_NAME STREQUAL "s390x")
5861
set(CMAKE_SYSTEM_PROCESSOR s390x)
5962
set(TOOLCHAIN "s390x-linux-gnu")
@@ -67,7 +70,7 @@ elseif (ILLUMOS)
6770
set(CMAKE_SYSTEM_PROCESSOR "x86_64")
6871
set(TOOLCHAIN "x86_64-illumos")
6972
else()
70-
message(FATAL_ERROR "Arch is ${TARGET_ARCH_NAME}. Only armel, arm, armv6, arm64, s390x and x86 are supported!")
73+
message(FATAL_ERROR "Arch is ${TARGET_ARCH_NAME}. Only armel, arm, armv6, arm64, ppc64le, s390x and x86 are supported!")
7174
endif()
7275

7376
if(DEFINED ENV{TOOLCHAIN})
@@ -201,7 +204,7 @@ endif()
201204

202205
# Specify compile options
203206

204-
if((TARGET_ARCH_NAME MATCHES "^(arm|armv6|armel|arm64|s390x)$" AND NOT ANDROID) OR ILLUMOS)
207+
if((TARGET_ARCH_NAME MATCHES "^(arm|armv6|armel|arm64|ppc64le|s390x)$" AND NOT ANDROID) OR ILLUMOS)
205208
set(CMAKE_C_COMPILER_TARGET ${TOOLCHAIN})
206209
set(CMAKE_CXX_COMPILER_TARGET ${TOOLCHAIN})
207210
set(CMAKE_ASM_COMPILER_TARGET ${TOOLCHAIN})

eng/common/generate-sbom-prep.ps1

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Param(
2+
[Parameter(Mandatory=$true)][string] $ManifestDirPath # Manifest directory where sbom will be placed
3+
)
4+
5+
Write-Host "Creating dir $ManifestDirPath"
6+
# create directory for sbom manifest to be placed
7+
if (!(Test-Path -path $ManifestDirPath))
8+
{
9+
New-Item -ItemType Directory -path $ManifestDirPath
10+
Write-Host "Successfully created directory $ManifestDirPath"
11+
}
12+
else{
13+
Write-PipelineTelemetryError -category 'Build' "Unable to create sbom folder."
14+
}
15+
16+
Write-Host "Updating artifact name"
17+
$artifact_name = "${env:SYSTEM_STAGENAME}_${env:AGENT_JOBNAME}_SBOM" -replace '["/:<>\\|?@*"() ]', '_'
18+
Write-Host "Artifact name $artifact_name"
19+
Write-Host "##vso[task.setvariable variable=ARTIFACT_NAME]$artifact_name"

eng/common/generate-sbom-prep.sh

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env bash
2+
3+
source="${BASH_SOURCE[0]}"
4+
5+
manifest_dir=$1
6+
7+
if [ ! -d "$manifest_dir" ] ; then
8+
mkdir -p "$manifest_dir"
9+
echo "Sbom directory created." $manifest_dir
10+
else
11+
Write-PipelineTelemetryError -category 'Build' "Unable to create sbom folder."
12+
fi
13+
14+
artifact_name=$SYSTEM_STAGENAME"_"$AGENT_JOBNAME"_SBOM"
15+
echo "Artifact name before : "$artifact_name
16+
# replace all special characters with _, some builds use special characters like : in Agent.Jobname, that is not a permissible name while uploading artifacts.
17+
safe_artifact_name="${artifact_name//["/:<>\\|?@*$" ]/_}"
18+
echo "Artifact name after : "$safe_artifact_name
19+
export ARTIFACT_NAME=$safe_artifact_name
20+
echo "##vso[task.setvariable variable=ARTIFACT_NAME]$safe_artifact_name"
21+
22+
exit 0

eng/common/templates/job/job.yml

+11
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ parameters:
3131
name: ''
3232
preSteps: []
3333
runAsPublic: false
34+
# Sbom related params
35+
enableSbom: true
36+
PackageVersion: 7.0.0
37+
BuildDropPath: '$(Build.SourcesDirectory)/artifacts'
3438

3539
jobs:
3640
- job: ${{ parameters.name }}
@@ -248,3 +252,10 @@ jobs:
248252
ArtifactName: AssetManifests
249253
continueOnError: ${{ parameters.continueOnError }}
250254
condition: and(succeeded(), eq(variables['_DotNetPublishToBlobFeed'], 'true'))
255+
256+
- ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), eq(parameters.enableSbom, 'true')) }}:
257+
- template: /eng/common/templates/steps/generate-sbom.yml
258+
parameters:
259+
PackageVersion: ${{ parameters.packageVersion}}
260+
BuildDropPath: ${{ parameters.buildDropPath }}
261+

eng/common/templates/jobs/jobs.yml

+5
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ parameters:
4141
# Internal resources (telemetry, microbuild) can only be accessed from non-public projects,
4242
# and some (Microbuild) should only be applied to non-PR cases for internal builds.
4343

44+
# Sbom related params
45+
enableSbom: true
46+
PackageVersion: 7.0.0
47+
BuildDropPath: '$(Build.SourcesDirectory)/artifacts'
48+
4449
jobs:
4550
- ${{ each job in parameters.jobs }}:
4651
- template: ../job/job.yml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# BuildDropPath - The root folder of the drop directory for which the manifest file will be generated.
2+
# PackageName - The name of the package this SBOM represents.
3+
# PackageVersion - The version of the package this SBOM represents.
4+
# ManifestDirPath - The path of the directory where the generated manifest files will be placed
5+
6+
parameters:
7+
PackageVersion: 7.0.0
8+
BuildDropPath: '$(Build.SourcesDirectory)/artifacts'
9+
PackageName: '.NET'
10+
ManifestDirPath: $(Build.ArtifactStagingDirectory)/sbom
11+
sbomContinueOnError: true
12+
13+
steps:
14+
- task: PowerShell@2
15+
displayName: Prep for SBOM generation in (Non-linux)
16+
condition: or(eq(variables['Agent.Os'], 'Windows_NT'), eq(variables['Agent.Os'], 'Darwin'))
17+
inputs:
18+
filePath: ./eng/common/generate-sbom-prep.ps1
19+
arguments: ${{parameters.manifestDirPath}}
20+
21+
- script: |
22+
./eng/common/generate-sbom-prep.sh ${{parameters.manifestDirPath}}
23+
displayName: Prep for SBOM generation in (Linux)
24+
condition: eq(variables['Agent.Os'], 'Linux')
25+
continueOnError: ${{ parameters.sbomContinueOnError }}
26+
27+
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
28+
displayName: 'Generate SBOM manifest'
29+
continueOnError: ${{ parameters.sbomContinueOnError }}
30+
inputs:
31+
PackageName: ${{ parameters.packageName }}
32+
BuildDropPath: ${{ parameters.buildDropPath }}
33+
PackageVersion: ${{ parameters.packageVersion }}
34+
ManifestDirPath: ${{ parameters.manifestDirPath }}
35+
36+
- task: PublishPipelineArtifact@1
37+
displayName: Publish SBOM manifest
38+
continueOnError: ${{parameters.sbomContinueOnError}}
39+
inputs:
40+
targetPath: '${{parameters.manifestDirPath}}'
41+
artifactName: $(ARTIFACT_NAME)
42+

global.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
}
1515
},
1616
"msbuild-sdks": {
17-
"Microsoft.DotNet.Arcade.Sdk": "7.0.0-beta.22109.1"
17+
"Microsoft.DotNet.Arcade.Sdk": "7.0.0-beta.22110.7"
1818
}
1919
}

0 commit comments

Comments
 (0)