From 250b850f52253a101ddc4857cb6a2e66b0b37739 Mon Sep 17 00:00:00 2001 From: Bob Arnson Date: Sun, 11 Jul 2021 17:16:48 -0400 Subject: Build api segment via traversal projects. 79s -> 21s on my octocore machine. --- src/api/api.cmd | 31 +++++-------------------------- src/api/api.proj | 9 +++++++++ src/api/burn/burn.proj | 42 ++++++++++++++++++++++++++++++++++++++++++ src/api/wix/wix.proj | 11 +++++++++++ 4 files changed, 67 insertions(+), 26 deletions(-) create mode 100644 src/api/api.proj create mode 100644 src/api/burn/burn.proj create mode 100644 src/api/wix/wix.proj diff --git a/src/api/api.cmd b/src/api/api.cmd index db8d5183..75303ea2 100644 --- a/src/api/api.cmd +++ b/src/api/api.cmd @@ -8,36 +8,15 @@ @echo Building api %_C% -:: burn - -nuget restore burn\api_burn.sln || exit /b - -msbuild -p:Configuration=%_C%;Platform=x86;PlatformToolset=v142 burn\api_burn.sln || exit /b -msbuild -p:Configuration=%_C%;Platform=x64;PlatformToolset=v142 burn\api_burn.sln || exit /b -msbuild -p:Configuration=%_C%;Platform=ARM64;PlatformToolset=v142 burn\api_burn.sln || exit /b - -msbuild -p:Configuration=%_C%;Platform=x86;PlatformToolset=v141 burn\api_burn.sln || exit /b -msbuild -p:Configuration=%_C%;Platform=x64;PlatformToolset=v141 burn\api_burn.sln || exit /b -msbuild -p:Configuration=%_C%;Platform=ARM64;PlatformToolset=v141 burn\api_burn.sln || exit /b - -msbuild -p:Configuration=%_C%;Platform=x86;PlatformToolset=v140 burn\api_burn.sln || exit /b -msbuild -p:Configuration=%_C%;Platform=x64;PlatformToolset=v140 burn\api_burn.sln || exit /b +:: restore +:: build +:: pack +msbuild -m -p:Configuration=%_C% api.proj || exit /b +:: test dotnet test -c %_C% --no-build burn\test\WixToolsetTest.Mba.Core\WixToolsetTest.Mba.Core.csproj || exit /b - -msbuild -t:PackNative -p:Configuration=%_C% burn\balutil\balutil.vcxproj || exit /b -msbuild -t:PackNative -p:Configuration=%_C% burn\bextutil\bextutil.vcxproj || exit /b -msbuild -t:PackNative -Restore -p:Configuration=%_C% burn\WixToolset.BootstrapperCore.Native\WixToolset.BootstrapperCore.Native.proj || exit /b -msbuild -t:Pack -p:Configuration=%_C% -p:NoBuild=true burn\WixToolset.Mba.Core\WixToolset.Mba.Core.csproj || exit /b - - -:: wix - -msbuild -Restore -p:Configuration=%_C% wix\api_wix.sln || exit /b - dotnet test -c %_C% --no-build wix\api_wix.sln || exit /b -msbuild -t:Pack -p:Configuration=%_C% -p:NoBuild=true wix\api_wix.sln || exit /b @popd @endlocal diff --git a/src/api/api.proj b/src/api/api.proj new file mode 100644 index 00000000..6d7a4188 --- /dev/null +++ b/src/api/api.proj @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/api/burn/burn.proj b/src/api/burn/burn.proj new file mode 100644 index 00000000..8dca9ac6 --- /dev/null +++ b/src/api/burn/burn.proj @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/api/wix/wix.proj b/src/api/wix/wix.proj new file mode 100644 index 00000000..3db83283 --- /dev/null +++ b/src/api/wix/wix.proj @@ -0,0 +1,11 @@ + + + + + + + + + + + -- cgit v1.2.3-55-g6feb