mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-23 17:53:58 +08:00
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:
parent
8daef18769
commit
7388ec960f
25
build.sh
25
build.sh
@ -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
|
||||
|
@ -17,6 +17,7 @@
|
||||
},
|
||||
|
||||
"runtimes": {
|
||||
"ubuntu.16.10-x64": { },
|
||||
"ubuntu.16.04-x64": { },
|
||||
"ubuntu.14.04-x64": { },
|
||||
"debian.8-x64": { },
|
||||
|
@ -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": { },
|
||||
|
@ -43,6 +43,7 @@
|
||||
"runtimes": {
|
||||
"ubuntu.14.04-x64": { },
|
||||
"ubuntu.16.04-x64": { },
|
||||
"ubuntu.16.10-x64": { },
|
||||
"centos.7-x64": { },
|
||||
"win7-x86": { },
|
||||
"win7-x64": { },
|
||||
|
@ -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": { }
|
||||
|
Loading…
Reference in New Issue
Block a user