build: Update build.sh to run fully manual build (#2832)

* build: Update build.sh to run fully manual build
* add ubuntu-16.10-x64 to the list of architectures to build for.w
This commit is contained in:
Christopher Nelson 2016-12-28 16:59:51 -05:00 committed by Sergei Vorobev
parent 8daef18769
commit 7388ec960f
5 changed files with 28 additions and 1 deletions

View File

@ -1,8 +1,31 @@
#!/usr/bin/env bash
set -e
if hash powershell 2>/dev/null; then
echo 'Continuing with `powershell -noprofile -c Start-PSBuild`'
powershell -noprofile -c "Import-Module ./build.psm1; Start-PSBuild"
else
echo 'No `powershell`, see docs/building/linux.md or macos.md to build PowerShell!'
echo 'Continuing with full manual build'
dotnet restore
pushd src/ResGen
dotnet run
popd
pushd src/TypeCatalogParser
dotnet run
popd
pushd src/TypeCatalogGen
dotnet run ../Microsoft.PowerShell.CoreCLR.AssemblyLoadContext/CorePsTypeCatalog.cs powershell.inc
popd
pushd src/libpsl-native
cmake -DCMAKE_BUILD_TYPE=Debug .
make -j
make test
popd
dotnet publish --configuration Linux ./src/powershell-unix/ --output bin
echo 'You can run powershell from bin/, but some modules that are normally added by the Restore-PSModule step will not be available.'
fi

View File

@ -17,6 +17,7 @@
},
"runtimes": {
"ubuntu.16.10-x64": { },
"ubuntu.16.04-x64": { },
"ubuntu.14.04-x64": { },
"debian.8-x64": { },

View File

@ -44,6 +44,7 @@
"runtimes": {
"ubuntu.14.04-x64": { },
"ubuntu.16.04-x64": { },
"ubuntu.16.10-x64": { },
"debian.8-x64": { },
"centos.7-x64": { },
"win7-x86": { },

View File

@ -43,6 +43,7 @@
"runtimes": {
"ubuntu.14.04-x64": { },
"ubuntu.16.04-x64": { },
"ubuntu.16.10-x64": { },
"centos.7-x64": { },
"win7-x86": { },
"win7-x64": { },

View File

@ -99,6 +99,7 @@
"runtimes": {
"ubuntu.14.04-x64": { },
"ubuntu.16.04-x64": { },
"ubuntu.16.10-x64": { },
"debian.8-x64": { },
"centos.7-x64": { },
"osx.10.11-x64": { }