5 echo "Builds the NuGet packages from the binaries that were built in the Build product binaries step."
6 echo "Usage: build-packages -BuildArch -BuildType"
7 echo "arch can be x64, x86, arm, arm64 (default is x64)"
8 echo "configuration can be release, checked, debug (default is debug)"
13 __ProjectRoot="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
28 unprocessedBuildArgs="$unprocessedBuildArgs $1"
29 __Arch=$(echo $1| cut -d'=' -f 2)
32 unprocessedBuildArgs="$unprocessedBuildArgs $1"
37 $__ProjectRoot/run.sh build-packages -Project=$__ProjectRoot/src/.nuget/Microsoft.NETCore.Runtime.CoreCLR/Microsoft.NETCore.Runtime.CoreCLR.builds -DistroRid=\${OSRid}-$__Arch -UseSharedCompilation=false -BuildNugetPackage=false $unprocessedBuildArgs
40 echo "ERROR: An error occurred while building packages; See build-packages.log for more details."
44 $__ProjectRoot/run.sh build-packages -Project=$__ProjectRoot/src/.nuget/Microsoft.NETCore.Jit/Microsoft.NETCore.Jit.builds -DistroRid=\${OSRid}-$__Arch -UseSharedCompilation=false -BuildNugetPackage=false $unprocessedBuildArgs
47 echo "ERROR: An error occurred while building packages; See build-packages.log for more details."
51 $__ProjectRoot/run.sh build-packages -Project=$__ProjectRoot/src/.nuget/Microsoft.NETCore.ILAsm/Microsoft.NETCore.ILAsm.builds -DistroRid=\${OSRid}-$__Arch -UseSharedCompilation=false -BuildNugetPackage=false $unprocessedBuildArgs
54 echo "ERROR: An error occurred while building packages; See build-packages.log for more details."
58 $__ProjectRoot/run.sh build-packages -Project=$__ProjectRoot/src/.nuget/Microsoft.NETCore.ILDAsm/Microsoft.NETCore.ILDAsm.builds -DistroRid=\${OSRid}-$__Arch -UseSharedCompilation=false -BuildNugetPackage=false $unprocessedBuildArgs
61 echo "ERROR: An error occurred while building packages; See build-packages.log for more details."
65 # Build the TestHost package
66 $__ProjectRoot/run.sh build-packages -Project=$__ProjectRoot/src/.nuget/Microsoft.NETCore.TestHost/Microsoft.NETCore.TestHost.builds -DistroRid=\${OSRid}-$__Arch -UseSharedCompilation=false -BuildNugetPackage=false $unprocessedBuildArgs
68 echo "ERROR: An error occurred while building packages, see $build_packages_log for more details."
72 echo "Done building packages."