diff --git a/repos/.build/arcade.copybinlogs.cmd b/repos/.build/arcade.copybinlogs.cmd new file mode 100644 index 0000000..f663eb9 --- /dev/null +++ b/repos/.build/arcade.copybinlogs.cmd @@ -0,0 +1,5 @@ +REM Copy binlogs +powershell -NoLogo -NoProfile -ExecutionPolicy Bypass -Command "%CodexBuildConfigRoot%/copybinlogs.ps1 -Source %SrcDir%\artifacts\log -Target %BinlogDir%" + +REM Copy binlogs to debug dir +powershell -NoLogo -NoProfile -ExecutionPolicy Bypass -Command "%CodexBuildConfigRoot%/copybinlogs.ps1 -Source %SrcDir%\artifacts\log -Target %CodexDebugDir%" \ No newline at end of file diff --git a/repos/.build/arcadebuild.cmd b/repos/.build/arcadebuild.cmd index f6ba4db..9fc9aa8 100644 --- a/repos/.build/arcadebuild.cmd +++ b/repos/.build/arcadebuild.cmd @@ -1,5 +1,4 @@ REM Build using arcade build logic powershell -NoLogo -NoProfile -ExecutionPolicy Bypass -Command "eng/common/build.ps1 -restore -build -binarylog -nodeReuse:$false %*" -REM Copy binlogs -xcopy "%SrcDir%\*.binlog" "%BinlogDir%" /S /I /Y \ No newline at end of file +call "%CodexBuildConfigRoot%\arcade.copybinlogs.cmd" \ No newline at end of file diff --git a/repos/.build/copybinlogs.ps1 b/repos/.build/copybinlogs.ps1 new file mode 100644 index 0000000..fbedcb5 --- /dev/null +++ b/repos/.build/copybinlogs.ps1 @@ -0,0 +1,20 @@ +param( + [Parameter(Mandatory=$true)] + [string] $Source, + + [Parameter(Mandatory=$true)] + [string] $Target +) + +# Create destination directory if it doesn't exist +if (-not (Test-Path -Path $Target)) { + New-Item -ItemType Directory -Path $Target +} + +# Copy all .binlog files from source to destination +Get-ChildItem -Path $Source -Filter *.binlog -Recurse | ForEach-Object { + Write-Host "Copying binlog $($_.FullName) to $($Target)" + Copy-Item -Path $_.FullName -Destination $Target -Force +} + +Write-Output "Copying binlogs complete." \ No newline at end of file diff --git a/repos/github/dotnet/.build/arcadebuild.cmd b/repos/github/dotnet/.build/arcadebuild.cmd index 394a98c..dd18c51 100644 --- a/repos/github/dotnet/.build/arcadebuild.cmd +++ b/repos/github/dotnet/.build/arcadebuild.cmd @@ -1,5 +1 @@ -REM Build using arcade build logic -powershell -NoLogo -NoProfile -ExecutionPolicy Bypass -Command "eng/common/build.ps1 -restore -build -binarylog -nodeReuse:$false" - -REM Copy binlogs -xcopy "%SrcDir%\*.binlog" "%BinlogDir%" /S /I /Y \ No newline at end of file +call "%CodexBuildConfigRoot%\arcadebuild.cmd" \ No newline at end of file diff --git a/repos/github/dotnet/arcade/build.cmd b/repos/github/dotnet/arcade/build.cmd new file mode 100644 index 0000000..dd18c51 --- /dev/null +++ b/repos/github/dotnet/arcade/build.cmd @@ -0,0 +1 @@ +call "%CodexBuildConfigRoot%\arcadebuild.cmd" \ No newline at end of file diff --git a/repos/github/dotnet/efcore/build.cmd b/repos/github/dotnet/efcore/build.cmd new file mode 100644 index 0000000..dd18c51 --- /dev/null +++ b/repos/github/dotnet/efcore/build.cmd @@ -0,0 +1 @@ +call "%CodexBuildConfigRoot%\arcadebuild.cmd" \ No newline at end of file diff --git a/repos/github/dotnet/extensions/build.cmd b/repos/github/dotnet/extensions/build.cmd new file mode 100644 index 0000000..dd18c51 --- /dev/null +++ b/repos/github/dotnet/extensions/build.cmd @@ -0,0 +1 @@ +call "%CodexBuildConfigRoot%\arcadebuild.cmd" \ No newline at end of file diff --git a/repos/github/dotnet/iot/build.cmd b/repos/github/dotnet/iot/build.cmd new file mode 100644 index 0000000..dd18c51 --- /dev/null +++ b/repos/github/dotnet/iot/build.cmd @@ -0,0 +1 @@ +call "%CodexBuildConfigRoot%\arcadebuild.cmd" \ No newline at end of file diff --git a/repos/github/dotnet/machinelearning/build.cmd b/repos/github/dotnet/machinelearning/build.cmd new file mode 100644 index 0000000..dd18c51 --- /dev/null +++ b/repos/github/dotnet/machinelearning/build.cmd @@ -0,0 +1 @@ +call "%CodexBuildConfigRoot%\arcadebuild.cmd" \ No newline at end of file diff --git a/repos/github/dotnet/msbuild/build.cmd b/repos/github/dotnet/msbuild/build.cmd new file mode 100644 index 0000000..dd18c51 --- /dev/null +++ b/repos/github/dotnet/msbuild/build.cmd @@ -0,0 +1 @@ +call "%CodexBuildConfigRoot%\arcadebuild.cmd" \ No newline at end of file diff --git a/repos/github/dotnet/razor/analyze.settings.json b/repos/github/dotnet/razor/analyze.settings.json deleted file mode 100644 index 80b3ffe..0000000 --- a/repos/github/dotnet/razor/analyze.settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "buildCmdRelativePath": "../.build/arcadebuild.cmd" -} \ No newline at end of file diff --git a/repos/github/dotnet/razor/build.cmd b/repos/github/dotnet/razor/build.cmd new file mode 100644 index 0000000..dd18c51 --- /dev/null +++ b/repos/github/dotnet/razor/build.cmd @@ -0,0 +1 @@ +call "%CodexBuildConfigRoot%\arcadebuild.cmd" \ No newline at end of file diff --git a/repos/github/dotnet/roslyn-analyzers/analyze.settings.json b/repos/github/dotnet/roslyn-analyzers/analyze.settings.json deleted file mode 100644 index 80b3ffe..0000000 --- a/repos/github/dotnet/roslyn-analyzers/analyze.settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "buildCmdRelativePath": "../.build/arcadebuild.cmd" -} \ No newline at end of file diff --git a/repos/github/dotnet/roslyn-analyzers/build.cmd b/repos/github/dotnet/roslyn-analyzers/build.cmd new file mode 100644 index 0000000..dd18c51 --- /dev/null +++ b/repos/github/dotnet/roslyn-analyzers/build.cmd @@ -0,0 +1 @@ +call "%CodexBuildConfigRoot%\arcadebuild.cmd" \ No newline at end of file diff --git a/repos/github/dotnet/runtime/build.cmd b/repos/github/dotnet/runtime/build.cmd index 860f4c1..062b115 100644 --- a/repos/github/dotnet/runtime/build.cmd +++ b/repos/github/dotnet/runtime/build.cmd @@ -1,14 +1,5 @@ -REM Disk space Before Build -powershell -NoLogo -NoProfile -ExecutionPolicy Bypass -Command "%CodexBuildConfigRoot%/diskspace.ps1" - REM Build using arcade build logic build.cmd clr+libs -rc Debug -binaryLog -REM Disk space Post Build -powershell -NoLogo -NoProfile -ExecutionPolicy Bypass -Command "%CodexBuildConfigRoot%/diskspace.ps1" - -REM Copy binlogs -xcopy "%SrcDir%\artifacts\log\*.binlog" "%BinlogDir%" /S /I /Y - -REM Copy binlogs to debug dir -xcopy "%SrcDir%\artifacts\log\*.binlog" "%CodexDebugDir%" /S /I /Y \ No newline at end of file +REM Copy binlogs from arcade logs folder +call "%CodexBuildConfigRoot%\arcade.copybinlogs.cmd" diff --git a/repos/github/dotnet/sdk/build.cmd b/repos/github/dotnet/sdk/build.cmd new file mode 100644 index 0000000..dd18c51 --- /dev/null +++ b/repos/github/dotnet/sdk/build.cmd @@ -0,0 +1 @@ +call "%CodexBuildConfigRoot%\arcadebuild.cmd" \ No newline at end of file diff --git a/repos/github/dotnet/symreader-portable/analyze.settings.json b/repos/github/dotnet/symreader-portable/analyze.settings.json deleted file mode 100644 index 80b3ffe..0000000 --- a/repos/github/dotnet/symreader-portable/analyze.settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "buildCmdRelativePath": "../.build/arcadebuild.cmd" -} \ No newline at end of file diff --git a/repos/github/dotnet/symreader-portable/build.cmd b/repos/github/dotnet/symreader-portable/build.cmd new file mode 100644 index 0000000..dd18c51 --- /dev/null +++ b/repos/github/dotnet/symreader-portable/build.cmd @@ -0,0 +1 @@ +call "%CodexBuildConfigRoot%\arcadebuild.cmd" \ No newline at end of file diff --git a/repos/github/dotnet/symreader/analyze.settings.json b/repos/github/dotnet/symreader/analyze.settings.json deleted file mode 100644 index 80b3ffe..0000000 --- a/repos/github/dotnet/symreader/analyze.settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "buildCmdRelativePath": "../.build/arcadebuild.cmd" -} \ No newline at end of file diff --git a/repos/github/dotnet/symreader/build.cmd b/repos/github/dotnet/symreader/build.cmd new file mode 100644 index 0000000..dd18c51 --- /dev/null +++ b/repos/github/dotnet/symreader/build.cmd @@ -0,0 +1 @@ +call "%CodexBuildConfigRoot%\arcadebuild.cmd" \ No newline at end of file diff --git a/repos/github/dotnet/symstore/analyze.settings.json b/repos/github/dotnet/symstore/analyze.settings.json deleted file mode 100644 index 80b3ffe..0000000 --- a/repos/github/dotnet/symstore/analyze.settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "buildCmdRelativePath": "../.build/arcadebuild.cmd" -} \ No newline at end of file diff --git a/repos/github/dotnet/symstore/build.cmd b/repos/github/dotnet/symstore/build.cmd new file mode 100644 index 0000000..dd18c51 --- /dev/null +++ b/repos/github/dotnet/symstore/build.cmd @@ -0,0 +1 @@ +call "%CodexBuildConfigRoot%\arcadebuild.cmd" \ No newline at end of file diff --git a/repos/github/dotnet/tye/analyze.settings.json b/repos/github/dotnet/tye/analyze.settings.json deleted file mode 100644 index 80b3ffe..0000000 --- a/repos/github/dotnet/tye/analyze.settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "buildCmdRelativePath": "../.build/arcadebuild.cmd" -} \ No newline at end of file diff --git a/repos/github/dotnet/tye/build.cmd b/repos/github/dotnet/tye/build.cmd new file mode 100644 index 0000000..dd18c51 --- /dev/null +++ b/repos/github/dotnet/tye/build.cmd @@ -0,0 +1 @@ +call "%CodexBuildConfigRoot%\arcadebuild.cmd" \ No newline at end of file diff --git a/repos/github/dotnet/wcf/build.cmd b/repos/github/dotnet/wcf/build.cmd new file mode 100644 index 0000000..dd18c51 --- /dev/null +++ b/repos/github/dotnet/wcf/build.cmd @@ -0,0 +1 @@ +call "%CodexBuildConfigRoot%\arcadebuild.cmd" \ No newline at end of file diff --git a/repos/github/dotnet/winforms/build.cmd b/repos/github/dotnet/winforms/build.cmd new file mode 100644 index 0000000..dd18c51 --- /dev/null +++ b/repos/github/dotnet/winforms/build.cmd @@ -0,0 +1 @@ +call "%CodexBuildConfigRoot%\arcadebuild.cmd" \ No newline at end of file