summaryrefslogtreecommitdiff
path: root/build-packages.cmd
diff options
context:
space:
mode:
authorwtgodbe <wigodbe@microsoft.com>2016-04-27 14:35:45 -0700
committerwtgodbe <wigodbe@microsoft.com>2016-05-17 14:06:39 -0700
commit8568bf1d9722657c602a1f1fe0148e28a93ea8ce (patch)
treed784a4438e3fe7b74106f1d3e82aa88889024fc4 /build-packages.cmd
parent41a4ad5054cf877db6aa331855b43ad8678a93ad (diff)
downloadcoreclr-8568bf1d9722657c602a1f1fe0148e28a93ea8ce.tar.gz
coreclr-8568bf1d9722657c602a1f1fe0148e28a93ea8ce.tar.bz2
coreclr-8568bf1d9722657c602a1f1fe0148e28a93ea8ce.zip
Add dev workflow scripts for build pipeline
Diffstat (limited to 'build-packages.cmd')
-rw-r--r--build-packages.cmd47
1 files changed, 47 insertions, 0 deletions
diff --git a/build-packages.cmd b/build-packages.cmd
new file mode 100644
index 0000000000..0ae96fe911
--- /dev/null
+++ b/build-packages.cmd
@@ -0,0 +1,47 @@
+@if "%_echo%" neq "on" echo off
+setlocal EnableDelayedExpansion
+
+set "__ProjectDir=%~dp0"
+set packagesLog=build-packages.log
+set binclashLoggerDll=%~dp0Tools\net45\Microsoft.DotNet.Build.Tasks.dll
+set binclashlog=%~dp0binclash.log
+echo Running build-packages.cmd %* > %packagesLog%
+
+set options=/nologo /maxcpucount /v:minimal /clp:Summary /nodeReuse:false /flp:v=detailed;Append;LogFile=%packagesLog% /l:BinClashLogger,%binclashLoggerDll%;LogFile=%binclashlog% /p:FilterToOSGroup=Windows_NT
+set allargs=%*
+
+if /I [%1] == [/?] goto Usage
+if /I [%1] == [/help] goto Usage
+
+REM ensure that msbuild is available
+echo Running init-tools.cmd
+call %~dp0init-tools.cmd
+
+set __msbuildArgs="%__ProjectDir%\src\.nuget\Microsoft.NETCore.Runtime.CoreClr\Microsoft.NETCore.Runtime.CoreCLR.builds" !allargs!
+echo msbuild.exe %__msbuildArgs% !options! >> %packagesLog%
+call msbuild.exe %__msbuildArgs% !options!
+if NOT [!ERRORLEVEL!]==[0] (
+ echo ERROR: An error occurred while building packages, see %packagesLog% for more details.
+ exit /b 1
+)
+
+set __msbuildArgs="%__ProjectDir%\src\.nuget\Microsoft.NETCore.Jit\Microsoft.NETCore.Jit.builds" !allargs!
+echo msbuild.exe %__msbuildArgs% !options! >> %packagesLog%
+call msbuild.exe %__msbuildArgs% !options!
+if NOT [!ERRORLEVEL!]==[0] (
+ echo ERROR: An error occurred while building packages, see %packagesLog% for more details.
+ exit /b 1
+)
+
+
+echo Done Building Packages.
+exit /b
+
+:Usage
+echo.
+echo Builds the NuGet packages from the binaries that were built in the Build product binaries step.
+echo The following properties are required to define build architecture
+echo /p:__BuildArch=[architecture] /p:__BuildType=[configuration]
+echo Architecture can be x64, x86, arm, or arm64
+echo Configuration can be Release, Debug, or Checked
+exit /b \ No newline at end of file