Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 26 additions & 26 deletions eng/Version.Details.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,32 @@ This file should be imported by eng/Versions.props
<Project>
<PropertyGroup>
<!-- dotnet-dotnet dependencies -->
<MicrosoftDotNetArcadeSdkPackageVersion>12.0.0-beta.26567.109</MicrosoftDotNetArcadeSdkPackageVersion>
<MicrosoftDotNetBuildTasksTemplatingPackageVersion>12.0.0-beta.26567.109</MicrosoftDotNetBuildTasksTemplatingPackageVersion>
<MicrosoftDotNetCMakeSdkPackageVersion>12.0.0-beta.26567.109</MicrosoftDotNetCMakeSdkPackageVersion>
<MicrosoftDotNetGenFacadesPackageVersion>12.0.0-beta.26567.109</MicrosoftDotNetGenFacadesPackageVersion>
<MicrosoftDotNetHelixSdkPackageVersion>12.0.0-beta.26567.109</MicrosoftDotNetHelixSdkPackageVersion>
<MicrosoftDotNetRemoteExecutorPackageVersion>12.0.0-beta.26567.109</MicrosoftDotNetRemoteExecutorPackageVersion>
<MicrosoftDotNetXUnitV3ExtensionsPackageVersion>12.0.0-beta.26567.109</MicrosoftDotNetXUnitV3ExtensionsPackageVersion>
<MicrosoftNETSdkILPackageVersion>12.0.0-alpha.1.26567.109</MicrosoftNETSdkILPackageVersion>
<MicrosoftNETCoreAppRefPackageVersion>12.0.0-alpha.1.26567.109</MicrosoftNETCoreAppRefPackageVersion>
<MicrosoftNETCoreILAsmPackageVersion>12.0.0-alpha.1.26567.109</MicrosoftNETCoreILAsmPackageVersion>
<MicrosoftNETCoreILDAsmPackageVersion>12.0.0-alpha.1.26567.109</MicrosoftNETCoreILDAsmPackageVersion>
<MicrosoftNETCorePlatformsPackageVersion>12.0.0-alpha.1.26567.109</MicrosoftNETCorePlatformsPackageVersion>
<MicrosoftWin32SystemEventsPackageVersion>12.0.0-alpha.1.26567.109</MicrosoftWin32SystemEventsPackageVersion>
<runtimewinx64MicrosoftNETCoreILAsmPackageVersion>12.0.0-alpha.1.26567.109</runtimewinx64MicrosoftNETCoreILAsmPackageVersion>
<runtimewinx86MicrosoftNETCoreILAsmPackageVersion>12.0.0-alpha.1.26567.109</runtimewinx86MicrosoftNETCoreILAsmPackageVersion>
<SystemCodeDomPackageVersion>12.0.0-alpha.1.26567.109</SystemCodeDomPackageVersion>
<SystemConfigurationConfigurationManagerPackageVersion>12.0.0-alpha.1.26567.109</SystemConfigurationConfigurationManagerPackageVersion>
<SystemDiagnosticsDiagnosticSourcePackageVersion>12.0.0-alpha.1.26567.109</SystemDiagnosticsDiagnosticSourcePackageVersion>
<SystemFormatsNrbfPackageVersion>12.0.0-alpha.1.26567.109</SystemFormatsNrbfPackageVersion>
<SystemIOHashingPackageVersion>12.0.0-alpha.1.26567.109</SystemIOHashingPackageVersion>
<SystemReflectionMetadataLoadContextPackageVersion>12.0.0-alpha.1.26567.109</SystemReflectionMetadataLoadContextPackageVersion>
<SystemResourcesExtensionsPackageVersion>12.0.0-alpha.1.26567.109</SystemResourcesExtensionsPackageVersion>
<SystemRuntimeSerializationFormattersPackageVersion>12.0.0-alpha.1.26567.109</SystemRuntimeSerializationFormattersPackageVersion>
<SystemTextEncodingsWebPackageVersion>12.0.0-alpha.1.26567.109</SystemTextEncodingsWebPackageVersion>
<SystemTextJsonPackageVersion>12.0.0-alpha.1.26567.109</SystemTextJsonPackageVersion>
<SystemWindowsExtensionsPackageVersion>12.0.0-alpha.1.26567.109</SystemWindowsExtensionsPackageVersion>
<MicrosoftDotNetArcadeSdkPackageVersion>12.0.0-beta.26568.110</MicrosoftDotNetArcadeSdkPackageVersion>
<MicrosoftDotNetBuildTasksTemplatingPackageVersion>12.0.0-beta.26568.110</MicrosoftDotNetBuildTasksTemplatingPackageVersion>
<MicrosoftDotNetCMakeSdkPackageVersion>12.0.0-beta.26568.110</MicrosoftDotNetCMakeSdkPackageVersion>
<MicrosoftDotNetGenFacadesPackageVersion>12.0.0-beta.26568.110</MicrosoftDotNetGenFacadesPackageVersion>
<MicrosoftDotNetHelixSdkPackageVersion>12.0.0-beta.26568.110</MicrosoftDotNetHelixSdkPackageVersion>
<MicrosoftDotNetRemoteExecutorPackageVersion>12.0.0-beta.26568.110</MicrosoftDotNetRemoteExecutorPackageVersion>
<MicrosoftDotNetXUnitV3ExtensionsPackageVersion>12.0.0-beta.26568.110</MicrosoftDotNetXUnitV3ExtensionsPackageVersion>
<MicrosoftNETSdkILPackageVersion>12.0.0-alpha.1.26568.110</MicrosoftNETSdkILPackageVersion>
<MicrosoftNETCoreAppRefPackageVersion>12.0.0-alpha.1.26568.110</MicrosoftNETCoreAppRefPackageVersion>
<MicrosoftNETCoreILAsmPackageVersion>12.0.0-alpha.1.26568.110</MicrosoftNETCoreILAsmPackageVersion>
<MicrosoftNETCoreILDAsmPackageVersion>12.0.0-alpha.1.26568.110</MicrosoftNETCoreILDAsmPackageVersion>
<MicrosoftNETCorePlatformsPackageVersion>12.0.0-alpha.1.26568.110</MicrosoftNETCorePlatformsPackageVersion>
<MicrosoftWin32SystemEventsPackageVersion>12.0.0-alpha.1.26568.110</MicrosoftWin32SystemEventsPackageVersion>
<runtimewinx64MicrosoftNETCoreILAsmPackageVersion>12.0.0-alpha.1.26568.110</runtimewinx64MicrosoftNETCoreILAsmPackageVersion>
<runtimewinx86MicrosoftNETCoreILAsmPackageVersion>12.0.0-alpha.1.26568.110</runtimewinx86MicrosoftNETCoreILAsmPackageVersion>
<SystemCodeDomPackageVersion>12.0.0-alpha.1.26568.110</SystemCodeDomPackageVersion>
<SystemConfigurationConfigurationManagerPackageVersion>12.0.0-alpha.1.26568.110</SystemConfigurationConfigurationManagerPackageVersion>
<SystemDiagnosticsDiagnosticSourcePackageVersion>12.0.0-alpha.1.26568.110</SystemDiagnosticsDiagnosticSourcePackageVersion>
<SystemFormatsNrbfPackageVersion>12.0.0-alpha.1.26568.110</SystemFormatsNrbfPackageVersion>
<SystemIOHashingPackageVersion>12.0.0-alpha.1.26568.110</SystemIOHashingPackageVersion>
<SystemReflectionMetadataLoadContextPackageVersion>12.0.0-alpha.1.26568.110</SystemReflectionMetadataLoadContextPackageVersion>
<SystemResourcesExtensionsPackageVersion>12.0.0-alpha.1.26568.110</SystemResourcesExtensionsPackageVersion>
<SystemRuntimeSerializationFormattersPackageVersion>12.0.0-alpha.1.26568.110</SystemRuntimeSerializationFormattersPackageVersion>
<SystemTextEncodingsWebPackageVersion>12.0.0-alpha.1.26568.110</SystemTextEncodingsWebPackageVersion>
<SystemTextJsonPackageVersion>12.0.0-alpha.1.26568.110</SystemTextJsonPackageVersion>
<SystemWindowsExtensionsPackageVersion>12.0.0-alpha.1.26568.110</SystemWindowsExtensionsPackageVersion>
</PropertyGroup>
<!--Property group for alternate package version names-->
<PropertyGroup>
Expand Down
106 changes: 53 additions & 53 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,114 +6,114 @@ Note: if the Uri is a new place, you will need to add a subscription from that p
And you can check these with "darc get-dependencies <dash dash>target-repo "winforms"
-->
<Dependencies>
<Source Uri="https://github.com/dotnet/dotnet" Mapping="winforms" Sha="33e080b907ba5802f9d074dcb962f5ae75d12357" BarId="341941" />
<Source Uri="https://github.com/dotnet/dotnet" Mapping="winforms" Sha="213c38deb6b0d8210c7c4550efa1afa57d016fe2" BarId="342150" />
<ProductDependencies>
<Dependency Name="System.Resources.Extensions" Version="12.0.0-alpha.1.26567.109">
<Dependency Name="System.Resources.Extensions" Version="12.0.0-alpha.1.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="System.Windows.Extensions" Version="12.0.0-alpha.1.26567.109">
<Dependency Name="System.Windows.Extensions" Version="12.0.0-alpha.1.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="Microsoft.NET.Sdk.IL" Version="12.0.0-alpha.1.26567.109">
<Dependency Name="Microsoft.NET.Sdk.IL" Version="12.0.0-alpha.1.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="Microsoft.NETCore.ILAsm" Version="12.0.0-alpha.1.26567.109">
<Dependency Name="Microsoft.NETCore.ILAsm" Version="12.0.0-alpha.1.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="runtime.win-x64.Microsoft.NETCore.ILAsm" Version="12.0.0-alpha.1.26567.109">
<Dependency Name="runtime.win-x64.Microsoft.NETCore.ILAsm" Version="12.0.0-alpha.1.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="runtime.win-x86.Microsoft.NETCore.ILAsm" Version="12.0.0-alpha.1.26567.109">
<Dependency Name="runtime.win-x86.Microsoft.NETCore.ILAsm" Version="12.0.0-alpha.1.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="System.Reflection.MetadataLoadContext" Version="12.0.0-alpha.1.26567.109">
<Dependency Name="System.Reflection.MetadataLoadContext" Version="12.0.0-alpha.1.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="Microsoft.NETCore.ILDAsm" Version="12.0.0-alpha.1.26567.109">
<Dependency Name="Microsoft.NETCore.ILDAsm" Version="12.0.0-alpha.1.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="System.Text.Encodings.Web" Version="12.0.0-alpha.1.26567.109">
<Dependency Name="System.Text.Encodings.Web" Version="12.0.0-alpha.1.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="System.Text.Json" Version="12.0.0-alpha.1.26567.109">
<Dependency Name="System.Text.Json" Version="12.0.0-alpha.1.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="Microsoft.NETCore.App.Ref" Version="12.0.0-alpha.1.26567.109">
<Dependency Name="Microsoft.NETCore.App.Ref" Version="12.0.0-alpha.1.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="Microsoft.NETCore.Platforms" Version="12.0.0-alpha.1.26567.109">
<Dependency Name="Microsoft.NETCore.Platforms" Version="12.0.0-alpha.1.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="System.Runtime.Serialization.Formatters" Version="12.0.0-alpha.1.26567.109">
<Dependency Name="System.Runtime.Serialization.Formatters" Version="12.0.0-alpha.1.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="Microsoft.Win32.SystemEvents" Version="12.0.0-alpha.1.26567.109">
<Dependency Name="Microsoft.Win32.SystemEvents" Version="12.0.0-alpha.1.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="System.CodeDom" Version="12.0.0-alpha.1.26567.109">
<Dependency Name="System.CodeDom" Version="12.0.0-alpha.1.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="System.Configuration.ConfigurationManager" Version="12.0.0-alpha.1.26567.109">
<Dependency Name="System.Configuration.ConfigurationManager" Version="12.0.0-alpha.1.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="System.Diagnostics.DiagnosticSource" Version="12.0.0-alpha.1.26567.109">
<Dependency Name="System.Diagnostics.DiagnosticSource" Version="12.0.0-alpha.1.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="System.Formats.Nrbf" Version="12.0.0-alpha.1.26567.109">
<Dependency Name="System.Formats.Nrbf" Version="12.0.0-alpha.1.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="System.IO.Hashing" Version="12.0.0-alpha.1.26567.109">
<Dependency Name="System.IO.Hashing" Version="12.0.0-alpha.1.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
</ProductDependencies>
<ToolsetDependencies>
<!-- Arcade -->
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="12.0.0-beta.26567.109">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="12.0.0-beta.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.GenFacades" Version="12.0.0-beta.26567.109">
<Dependency Name="Microsoft.DotNet.GenFacades" Version="12.0.0-beta.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.CMake.Sdk" Version="12.0.0-beta.26567.109">
<Dependency Name="Microsoft.DotNet.CMake.Sdk" Version="12.0.0-beta.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="12.0.0-beta.26567.109">
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="12.0.0-beta.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.RemoteExecutor" Version="12.0.0-beta.26567.109">
<Dependency Name="Microsoft.DotNet.RemoteExecutor" Version="12.0.0-beta.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.XUnitV3Extensions" Version="12.0.0-beta.26567.109">
<Dependency Name="Microsoft.DotNet.XUnitV3Extensions" Version="12.0.0-beta.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Build.Tasks.Templating" Version="12.0.0-beta.26567.109">
<Dependency Name="Microsoft.DotNet.Build.Tasks.Templating" Version="12.0.0-beta.26568.110">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>33e080b907ba5802f9d074dcb962f5ae75d12357</Sha>
<Sha>213c38deb6b0d8210c7c4550efa1afa57d016fe2</Sha>
</Dependency>
</ToolsetDependencies>
</Dependencies>
55 changes: 48 additions & 7 deletions eng/common/core-templates/steps/astred-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ parameters:
- name: binlogDir
type: string
default: $(Build.ArtifactStagingDirectory)/AstredCapture/binlogs
- name: compilationDatabaseDir
type: string
default: ''
# Optional Windows setup command to obtain INCLUDE for compilation database imports.
- name: nativeEnvironmentCommand
type: string
default: ''
- name: capturePath
type: string
default: $(Build.ArtifactStagingDirectory)/AstredCapture
Expand All @@ -17,27 +24,59 @@ steps:
- task: AstredInstaller@0
displayName: Install Astred CLI
inputs:
Version: '2.14.1'
Version: '2.14.37'
FeedUrl: 'https://pkgs.dev.azure.com/dnceng/_packaging/dotnet-internal-FoSSE/nuget/v3/index.json'

- pwsh: |
$ErrorActionPreference = 'Stop'
$apjOut = Join-Path $env:ASTRED_CAPTURE_PATH 'apj'
New-Item -ItemType Directory -Force -Path $apjOut | Out-Null

$binlogs = Get-ChildItem -Path $env:ASTRED_BINLOG_DIR -Recurse -Force -Filter *.binlog `
-ErrorAction SilentlyContinue
$binlogs = @(Get-ChildItem -Path $env:ASTRED_BINLOG_DIR -Recurse -Force -Filter *.binlog `
-ErrorAction SilentlyContinue)
if (-not $binlogs) {
Write-Host "##vso[task.logissue type=warning]No binlogs found in $env:ASTRED_BINLOG_DIR. Check the calling job's Astred header configuration for MSBUILDDEBUGENGINE / MSBuildDebugEngine and MSBUILDDEBUGPATH."
}

$compilationDatabases = @()
if ($env:ASTRED_COMPILATION_DATABASE_DIR) {
if (Test-Path -LiteralPath $env:ASTRED_COMPILATION_DATABASE_DIR -PathType Container) {
$compilationDatabases = @(Get-ChildItem -LiteralPath $env:ASTRED_COMPILATION_DATABASE_DIR `
-Recurse -Force -File -Filter compile_commands.json)
}
if (-not $compilationDatabases) {
Write-Host "##vso[task.logissue type=warning]No compilation databases found in $env:ASTRED_COMPILATION_DATABASE_DIR. Native code built outside MSBuild will not be captured."
}
}

if (-not $binlogs -and -not $compilationDatabases) {
exit 0
}

if ($compilationDatabases -and $env:ASTRED_NATIVE_ENVIRONMENT_COMMAND) {
$nativeEnvironmentOutput = & $env:ComSpec /d /c "$env:ASTRED_NATIVE_ENVIRONMENT_COMMAND && set INCLUDE"
$nativeEnvironmentExitCode = $LASTEXITCODE
$nativeEnvironmentOutput | Where-Object { $_ -notlike 'INCLUDE*=*' } |
ForEach-Object { Write-Host $_ }
if ($nativeEnvironmentExitCode -ne 0) {
throw "Native compiler environment setup failed (exit $nativeEnvironmentExitCode)."
}

$nativeInclude = $nativeEnvironmentOutput |
Where-Object { $_ -like 'INCLUDE=*' } |
ForEach-Object { $_.Substring('INCLUDE='.Length) } |
Select-Object -Last 1
if ([string]::IsNullOrWhiteSpace($nativeInclude)) {
throw 'Native compiler environment setup did not define INCLUDE.'
}
$env:INCLUDE = $nativeInclude
}

$project = Join-Path $apjOut '.astred.project.json'
$binlogPaths = @($binlogs.FullName)
$responseFile = Join-Path $apjOut 'binlogs.rsp'
$binlogPaths | ForEach-Object { '"{0}"' -f $_ } |
$responseFile = Join-Path $apjOut 'astproj-inputs.rsp'
($binlogs + $compilationDatabases) | ForEach-Object { '"{0}"' -f $_.FullName } |
Set-Content -LiteralPath $responseFile -Encoding utf8
Write-Host "astproj: processing $($binlogPaths.Count) binlog(s)"
Write-Host "astproj: processing $($binlogs.Count) binlog(s) and $($compilationDatabases.Count) compilation database(s)"
astred astproj -nofolders "@$responseFile" "-o:$project"
if ($LASTEXITCODE -ne 0) {
throw "astproj failed (exit $LASTEXITCODE)"
Expand All @@ -46,6 +85,8 @@ steps:
workingDirectory: ${{ parameters.sourcesPath }}
env:
ASTRED_BINLOG_DIR: ${{ parameters.binlogDir }}
ASTRED_COMPILATION_DATABASE_DIR: ${{ parameters.compilationDatabaseDir }}
ASTRED_NATIVE_ENVIRONMENT_COMMAND: ${{ parameters.nativeEnvironmentCommand }}
ASTRED_CAPTURE_PATH: ${{ parameters.capturePath }}
continueOnError: true

Expand Down
Loading
Loading