Update dependencies from https://github.com/dotnet/arcade build 20211208.1 (#12779)
[main] Update dependencies from dotnet/arcade
This commit is contained in:
parent
1a0a9b8e97
commit
702a984521
8 changed files with 111 additions and 70 deletions
|
@ -172,19 +172,19 @@
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ProductDependencies>
|
</ProductDependencies>
|
||||||
<ToolsetDependencies>
|
<ToolsetDependencies>
|
||||||
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.21606.6">
|
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.21608.1">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>5d969787afb2fd87f642458687e3ad41094ac3ab</Sha>
|
<Sha>200adbc809c4451973d1929a53a75502b7cada01</Sha>
|
||||||
<SourceBuild RepoName="arcade" ManagedOnly="true" />
|
<SourceBuild RepoName="arcade" ManagedOnly="true" />
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.CMake.Sdk" Version="7.0.0-beta.21606.6">
|
<Dependency Name="Microsoft.DotNet.CMake.Sdk" Version="7.0.0-beta.21608.1">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>5d969787afb2fd87f642458687e3ad41094ac3ab</Sha>
|
<Sha>200adbc809c4451973d1929a53a75502b7cada01</Sha>
|
||||||
<SourceBuild RepoName="arcade" ManagedOnly="true" />
|
<SourceBuild RepoName="arcade" ManagedOnly="true" />
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="7.0.0-beta.21606.6">
|
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="7.0.0-beta.21608.1">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>5d969787afb2fd87f642458687e3ad41094ac3ab</Sha>
|
<Sha>200adbc809c4451973d1929a53a75502b7cada01</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-reference-packages" Version="6.0.0-alpha.1.21608.2">
|
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-reference-packages" Version="6.0.0-alpha.1.21608.2">
|
||||||
<Uri>https://github.com/dotnet/source-build-reference-packages</Uri>
|
<Uri>https://github.com/dotnet/source-build-reference-packages</Uri>
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<!-- Dependency from https://github.com/dotnet/arcade -->
|
<!-- Dependency from https://github.com/dotnet/arcade -->
|
||||||
<MicrosoftDotNetBuildTasksInstallersPackageVersion>7.0.0-beta.21606.6</MicrosoftDotNetBuildTasksInstallersPackageVersion>
|
<MicrosoftDotNetBuildTasksInstallersPackageVersion>7.0.0-beta.21608.1</MicrosoftDotNetBuildTasksInstallersPackageVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<!-- Dependency from https://github.com/dotnet/winforms -->
|
<!-- Dependency from https://github.com/dotnet/winforms -->
|
||||||
|
|
2
eng/common/cross/armv6/sources.list.buster
Normal file
2
eng/common/cross/armv6/sources.list.buster
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
|
||||||
|
deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
|
|
@ -99,6 +99,15 @@ while :; do
|
||||||
__AlpineArch=armv7
|
__AlpineArch=armv7
|
||||||
__QEMUArch=arm
|
__QEMUArch=arm
|
||||||
;;
|
;;
|
||||||
|
armv6)
|
||||||
|
__BuildArch=armv6
|
||||||
|
__UbuntuArch=armhf
|
||||||
|
__QEMUArch=arm
|
||||||
|
__UbuntuRepo="http://raspbian.raspberrypi.org/raspbian/"
|
||||||
|
__CodeName=buster
|
||||||
|
__LLDB_Package="liblldb-6.0-dev"
|
||||||
|
__Keyring="/usr/share/keyrings/raspbian-archive-keyring.gpg"
|
||||||
|
;;
|
||||||
arm64)
|
arm64)
|
||||||
__BuildArch=arm64
|
__BuildArch=arm64
|
||||||
__UbuntuArch=arm64
|
__UbuntuArch=arm64
|
||||||
|
@ -236,6 +245,12 @@ while :; do
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ -e "$__Keyring" ]; then
|
||||||
|
__Keyring="--keyring=$__Keyring"
|
||||||
|
else
|
||||||
|
__Keyring=""
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$__BuildArch" == "armel" ]; then
|
if [ "$__BuildArch" == "armel" ]; then
|
||||||
__LLDB_Package="lldb-3.5-dev"
|
__LLDB_Package="lldb-3.5-dev"
|
||||||
fi
|
fi
|
||||||
|
@ -337,7 +352,7 @@ elif [[ "$__CodeName" == "illumos" ]]; then
|
||||||
wget -P "$__RootfsDir"/usr/include/netpacket https://raw.githubusercontent.com/illumos/illumos-gate/master/usr/src/uts/common/inet/sockmods/netpacket/packet.h
|
wget -P "$__RootfsDir"/usr/include/netpacket https://raw.githubusercontent.com/illumos/illumos-gate/master/usr/src/uts/common/inet/sockmods/netpacket/packet.h
|
||||||
wget -P "$__RootfsDir"/usr/include/sys https://raw.githubusercontent.com/illumos/illumos-gate/master/usr/src/uts/common/sys/sdt.h
|
wget -P "$__RootfsDir"/usr/include/sys https://raw.githubusercontent.com/illumos/illumos-gate/master/usr/src/uts/common/sys/sdt.h
|
||||||
elif [[ -n $__CodeName ]]; then
|
elif [[ -n $__CodeName ]]; then
|
||||||
qemu-debootstrap --arch $__UbuntuArch $__CodeName $__RootfsDir $__UbuntuRepo
|
qemu-debootstrap $__Keyring --arch $__UbuntuArch $__CodeName $__RootfsDir $__UbuntuRepo
|
||||||
cp $__CrossDir/$__BuildArch/sources.list.$__CodeName $__RootfsDir/etc/apt/sources.list
|
cp $__CrossDir/$__BuildArch/sources.list.$__CodeName $__RootfsDir/etc/apt/sources.list
|
||||||
chroot $__RootfsDir apt-get update
|
chroot $__RootfsDir apt-get update
|
||||||
chroot $__RootfsDir apt-get -f -y install
|
chroot $__RootfsDir apt-get -f -y install
|
||||||
|
|
|
@ -51,14 +51,9 @@ jobs:
|
||||||
value: ${{ parameters.AzDOPipelineId }}
|
value: ${{ parameters.AzDOPipelineId }}
|
||||||
- name: AzDOBuildId
|
- name: AzDOBuildId
|
||||||
value: ${{ parameters.AzDOBuildId }}
|
value: ${{ parameters.AzDOBuildId }}
|
||||||
# The Guardian version specified in 'eng/common/sdl/packages.config'. This value must be kept in
|
- template: /eng/common/templates/variables/sdl-variables.yml
|
||||||
# sync with the packages.config file.
|
|
||||||
- name: DefaultGuardianVersion
|
|
||||||
value: 0.109.0
|
|
||||||
- name: GuardianVersion
|
- name: GuardianVersion
|
||||||
value: ${{ coalesce(parameters.overrideGuardianVersion, '$(DefaultGuardianVersion)') }}
|
value: ${{ coalesce(parameters.overrideGuardianVersion, '$(DefaultGuardianVersion)') }}
|
||||||
- name: GuardianPackagesConfigFile
|
|
||||||
value: $(Build.SourcesDirectory)\eng\common\sdl\packages.config
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: windows-2019
|
vmImage: windows-2019
|
||||||
steps:
|
steps:
|
||||||
|
@ -125,57 +120,11 @@ jobs:
|
||||||
displayName: Extract Archive Artifacts
|
displayName: Extract Archive Artifacts
|
||||||
continueOnError: ${{ parameters.sdlContinueOnError }}
|
continueOnError: ${{ parameters.sdlContinueOnError }}
|
||||||
|
|
||||||
- ${{ if ne(parameters.overrideGuardianVersion, '') }}:
|
- template: /eng/common/templates/steps/execute-sdl.yml
|
||||||
- powershell: |
|
parameters:
|
||||||
$content = Get-Content $(GuardianPackagesConfigFile)
|
overrideGuardianVersion: ${{ parameters.overrideGuardianVersion }}
|
||||||
|
executeAllSdlToolsScript: ${{ parameters.executeAllSdlToolsScript }}
|
||||||
Write-Host "packages.config content was:`n$content"
|
overrideParameters: ${{ parameters.overrideParameters }}
|
||||||
|
additionalParameters: ${{ parameters.additionalParameters }}
|
||||||
$content = $content.Replace('$(DefaultGuardianVersion)', '$(GuardianVersion)')
|
publishGuardianDirectoryToPipeline: ${{ parameters.publishGuardianDirectoryToPipeline }}
|
||||||
$content | Set-Content $(GuardianPackagesConfigFile)
|
sdlContinueOnError: ${{ parameters.sdlContinueOnError }}
|
||||||
|
|
||||||
Write-Host "packages.config content updated to:`n$content"
|
|
||||||
displayName: Use overridden Guardian version ${{ parameters.overrideGuardianVersion }}
|
|
||||||
|
|
||||||
- task: NuGetToolInstaller@1
|
|
||||||
displayName: 'Install NuGet.exe'
|
|
||||||
- task: NuGetCommand@2
|
|
||||||
displayName: 'Install Guardian'
|
|
||||||
inputs:
|
|
||||||
restoreSolution: $(Build.SourcesDirectory)\eng\common\sdl\packages.config
|
|
||||||
feedsToUse: config
|
|
||||||
nugetConfigPath: $(Build.SourcesDirectory)\eng\common\sdl\NuGet.config
|
|
||||||
externalFeedCredentials: GuardianConnect
|
|
||||||
restoreDirectory: $(Build.SourcesDirectory)\.packages
|
|
||||||
|
|
||||||
- ${{ if ne(parameters.overrideParameters, '') }}:
|
|
||||||
- powershell: ${{ parameters.executeAllSdlToolsScript }} ${{ parameters.overrideParameters }}
|
|
||||||
displayName: Execute SDL
|
|
||||||
continueOnError: ${{ parameters.sdlContinueOnError }}
|
|
||||||
- ${{ if eq(parameters.overrideParameters, '') }}:
|
|
||||||
- powershell: ${{ parameters.executeAllSdlToolsScript }}
|
|
||||||
-GuardianPackageName Microsoft.Guardian.Cli.$(GuardianVersion)
|
|
||||||
-NugetPackageDirectory $(Build.SourcesDirectory)\.packages
|
|
||||||
-AzureDevOpsAccessToken $(dn-bot-dotnet-build-rw-code-rw)
|
|
||||||
${{ parameters.additionalParameters }}
|
|
||||||
displayName: Execute SDL
|
|
||||||
continueOnError: ${{ parameters.sdlContinueOnError }}
|
|
||||||
|
|
||||||
- ${{ if ne(parameters.publishGuardianDirectoryToPipeline, 'false') }}:
|
|
||||||
# We want to publish the Guardian results and configuration for easy diagnosis. However, the
|
|
||||||
# '.gdn' dir is a mix of configuration, results, extracted dependencies, and Guardian default
|
|
||||||
# tooling files. Some of these files are large and aren't useful during an investigation, so
|
|
||||||
# exclude them by simply deleting them before publishing. (As of writing, there is no documented
|
|
||||||
# way to selectively exclude a dir from the pipeline artifact publish task.)
|
|
||||||
- task: DeleteFiles@1
|
|
||||||
displayName: Delete Guardian dependencies to avoid uploading
|
|
||||||
inputs:
|
|
||||||
SourceFolder: $(Agent.BuildDirectory)/.gdn
|
|
||||||
Contents: |
|
|
||||||
c
|
|
||||||
i
|
|
||||||
condition: succeededOrFailed()
|
|
||||||
- publish: $(Agent.BuildDirectory)/.gdn
|
|
||||||
artifact: GuardianConfiguration
|
|
||||||
displayName: Publish GuardianConfiguration
|
|
||||||
condition: succeededOrFailed()
|
|
||||||
|
|
68
eng/common/templates/steps/execute-sdl.yml
Normal file
68
eng/common/templates/steps/execute-sdl.yml
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
parameters:
|
||||||
|
overrideGuardianVersion: ''
|
||||||
|
executeAllSdlToolsScript: ''
|
||||||
|
overrideParameters: ''
|
||||||
|
additionalParameters: ''
|
||||||
|
publishGuardianDirectoryToPipeline: false
|
||||||
|
sdlContinueOnError: false
|
||||||
|
condition: ''
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- ${{ if ne(parameters.overrideGuardianVersion, '') }}:
|
||||||
|
- powershell: |
|
||||||
|
$content = Get-Content $(GuardianPackagesConfigFile)
|
||||||
|
|
||||||
|
Write-Host "packages.config content was:`n$content"
|
||||||
|
|
||||||
|
$content = $content.Replace('$(DefaultGuardianVersion)', '$(GuardianVersion)')
|
||||||
|
$content | Set-Content $(GuardianPackagesConfigFile)
|
||||||
|
|
||||||
|
Write-Host "packages.config content updated to:`n$content"
|
||||||
|
displayName: Use overridden Guardian version ${{ parameters.overrideGuardianVersion }}
|
||||||
|
|
||||||
|
- task: NuGetToolInstaller@1
|
||||||
|
displayName: 'Install NuGet.exe'
|
||||||
|
|
||||||
|
- task: NuGetCommand@2
|
||||||
|
displayName: 'Install Guardian'
|
||||||
|
inputs:
|
||||||
|
restoreSolution: $(Build.SourcesDirectory)\eng\common\sdl\packages.config
|
||||||
|
feedsToUse: config
|
||||||
|
nugetConfigPath: $(Build.SourcesDirectory)\eng\common\sdl\NuGet.config
|
||||||
|
externalFeedCredentials: GuardianConnect
|
||||||
|
restoreDirectory: $(Build.SourcesDirectory)\.packages
|
||||||
|
|
||||||
|
- ${{ if ne(parameters.overrideParameters, '') }}:
|
||||||
|
- powershell: ${{ parameters.executeAllSdlToolsScript }} ${{ parameters.overrideParameters }}
|
||||||
|
displayName: Execute SDL
|
||||||
|
continueOnError: ${{ parameters.sdlContinueOnError }}
|
||||||
|
condition: ${{ parameters.condition }}
|
||||||
|
|
||||||
|
- ${{ if eq(parameters.overrideParameters, '') }}:
|
||||||
|
- powershell: ${{ parameters.executeAllSdlToolsScript }}
|
||||||
|
-GuardianPackageName Microsoft.Guardian.Cli.$(GuardianVersion)
|
||||||
|
-NugetPackageDirectory $(Build.SourcesDirectory)\.packages
|
||||||
|
-AzureDevOpsAccessToken $(dn-bot-dotnet-build-rw-code-rw)
|
||||||
|
${{ parameters.additionalParameters }}
|
||||||
|
displayName: Execute SDL
|
||||||
|
continueOnError: ${{ parameters.sdlContinueOnError }}
|
||||||
|
condition: ${{ parameters.condition }}
|
||||||
|
|
||||||
|
- ${{ if ne(parameters.publishGuardianDirectoryToPipeline, 'false') }}:
|
||||||
|
# We want to publish the Guardian results and configuration for easy diagnosis. However, the
|
||||||
|
# '.gdn' dir is a mix of configuration, results, extracted dependencies, and Guardian default
|
||||||
|
# tooling files. Some of these files are large and aren't useful during an investigation, so
|
||||||
|
# exclude them by simply deleting them before publishing. (As of writing, there is no documented
|
||||||
|
# way to selectively exclude a dir from the pipeline artifact publish task.)
|
||||||
|
- task: DeleteFiles@1
|
||||||
|
displayName: Delete Guardian dependencies to avoid uploading
|
||||||
|
inputs:
|
||||||
|
SourceFolder: $(Agent.BuildDirectory)/.gdn
|
||||||
|
Contents: |
|
||||||
|
c
|
||||||
|
i
|
||||||
|
condition: succeededOrFailed()
|
||||||
|
- publish: $(Agent.BuildDirectory)/.gdn
|
||||||
|
artifact: GuardianConfiguration
|
||||||
|
displayName: Publish GuardianConfiguration
|
||||||
|
condition: succeededOrFailed()
|
7
eng/common/templates/variables/sdl-variables.yml
Normal file
7
eng/common/templates/variables/sdl-variables.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
variables:
|
||||||
|
# The Guardian version specified in 'eng/common/sdl/packages.config'. This value must be kept in
|
||||||
|
# sync with the packages.config file.
|
||||||
|
- name: DefaultGuardianVersion
|
||||||
|
value: 0.109.0
|
||||||
|
- name: GuardianPackagesConfigFile
|
||||||
|
value: $(Build.SourcesDirectory)\eng\common\sdl\packages.config
|
|
@ -11,7 +11,7 @@
|
||||||
"cmake": "3.16.4"
|
"cmake": "3.16.4"
|
||||||
},
|
},
|
||||||
"msbuild-sdks": {
|
"msbuild-sdks": {
|
||||||
"Microsoft.DotNet.Arcade.Sdk": "7.0.0-beta.21606.6",
|
"Microsoft.DotNet.Arcade.Sdk": "7.0.0-beta.21608.1",
|
||||||
"Microsoft.DotNet.CMake.Sdk": "7.0.0-beta.21606.6"
|
"Microsoft.DotNet.CMake.Sdk": "7.0.0-beta.21608.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue