forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change how we build the cross-OS DAC to support building in the VMR (d…
…otnet#111927) * Don't build the linuxdac by default. Cross-os DAC build failures are quite rare nowadays and we have CI protection against build failures. Remove the linux dac from the default build subsets to speed up the default build experience. * Rewrite cross-os DAC packaging in terms of runtime packs instead of using a separate artifact * Build the cross-os DACs when crossdacpack is built. * Forward the ESRP tool path down from DotNetBuild.props and set up the cross-dac invocation from the join jobs. * Pass down the buildpass to the inner build and decide what to build in Subsets.props * Allow passing a script root (needed for VMR reusage of this template) * Adjust DAC signing script to fix failures in internal testing * Force the value of SignRequestFiles to always be an array * Build the cross-os DACs via their subset names
- Loading branch information
1 parent
2c77535
commit dea928c
Showing
10 changed files
with
132 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[CmdletBinding()] | ||
param ( | ||
[Parameter(Mandatory)] | ||
[string] | ||
$DownloadDirectory, | ||
[Parameter(Mandatory)] | ||
[string] | ||
$ExtractDirectory | ||
) | ||
|
||
Add-Type -Assembly 'System.IO.Compression.FileSystem' | ||
|
||
Write-Host "Looking for packages under $DownloadDirectory" | ||
|
||
foreach ($file in Get-ChildItem $DownloadDirectory -Recurse -Filter '*.nupkg') { | ||
Write-Host "Found Package: $($file.FullName)" | ||
if ($file.Name -match '^(?<id>Microsoft.NETCore.App.Runtime.linux(-musl)?-((arm(64)?)|x64)).(?<ver>.+).nupkg$') { | ||
$id = $matches['id'] | ||
$ver = $matches['ver'] | ||
Write-Host "Extracting Package: $id $ver to $ExtractDirectory/$($id.ToLowerInvariant())/$ver" | ||
[System.IO.Compression.ZipFile]::ExtractToDirectory($file.FullName, "$ExtractDirectory/$($id.ToLowerInvariant())/$ver") | ||
} else { | ||
throw "Unexpected file name: $($file.Name)" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
parameters: | ||
isOfficialBuild: | ||
type: boolean | ||
displayName: 'Is Official Build' | ||
isOfficialBuild: false | ||
scriptRoot: '$(Build.SourcesDirectory)' | ||
|
||
steps: | ||
- ${{ if and(eq(parameters.isOfficialBuild, true), ne(variables['Build.Reason'], 'PullRequest'), or(startswith(variables['Build.SourceBranch'], 'refs/heads/release/'), startswith(variables['Build.SourceBranch'], 'refs/heads/internal/release/'), startswith(variables['Build.SourceBranch'], 'refs/heads/reltest/')), not(endsWith(variables['Build.SourceBranch'], '-staging'))) }}: | ||
- powershell: | | ||
eng/pipelines/remove-diagnostic-certs.ps1 "$(DacCertificateThumbprints)" | ||
workingDirectory: ${{ parameters.scriptRoot }} | ||
displayName: 'Remove Diagnostic Certificates' | ||
condition: always() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.