Skip to content

Commit

Permalink
dotnet-build: introduce NO_SAVE_TEMPS
Browse files Browse the repository at this point in the history
Clean up build directories in order to save space.

Signed-off-by: Ilya Leoshkevich <[email protected]>
  • Loading branch information
iii-i committed Apr 8, 2024
1 parent 5d4117e commit 3486121
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dotnet-build
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ if [ -z ${SKIP_PACKAGE_RUNTIME+x} ] && [ ! -e .skip-package ]; then
tar -C artifacts/obj/mono/[Ll]inux."$ARCH"."$RUNTIME_CONF"/out/lib -czf "$OUTPUTDIR"/libmono-profiler-log-"$ARCH".tar.gz libmono-profiler-log.so
fi
fi
[ -z "${NO_SAVE_TEMPS+x}" ] || git clean -dfx
popd

MSBUILD_CONF=Release
Expand All @@ -120,6 +121,7 @@ fi
if [ -z ${SKIP_PACKAGE_MSBUILD+x} ] && [ ! -e .skip-package ]; then
for I in artifacts/packages/Release/*/*; do cp "$I" "$PACKAGESDIR"; done
fi
[ -z "${NO_SAVE_TEMPS+x}" ] || git clean -dfx
popd

ROSLYN_CONF=Release
Expand All @@ -145,6 +147,7 @@ fi
if [ -z ${SKIP_PACKAGE_ROSLYN+x} ] && [ ! -e .skip-package ]; then
for I in artifacts/packages/Release/*/*.nupkg; do cp "$I" "$PACKAGESDIR"; done
fi
[ -z "${NO_SAVE_TEMPS+x}" ] || git clean -dfx
popd

SDK_CONF=Release
Expand Down Expand Up @@ -172,6 +175,7 @@ if [ -z ${SKIP_PACKAGE_SDK+x} ] && [ ! -e .skip-package ]; then
mkdir -p "$DOWNLOADDIR/Sdk/$SDK_VERSION"
cp "artifacts/packages/Release/NonShipping/dotnet-toolset-internal-$SDK_VERSION.zip" "$DOWNLOADDIR/Sdk/$SDK_VERSION"
fi
[ -z "${NO_SAVE_TEMPS+x}" ] || git clean -dfx
popd

ASPNETCORE_CONF=Release
Expand Down Expand Up @@ -236,6 +240,7 @@ if [ -z ${SKIP_PACKAGE_ASPNETCORE+x} ] && [ ! -e .skip-package ]; then
cp "artifacts/installers/$ASPNETCORE_CONF/aspnetcore_base_runtime.version" "$DOWNLOADDIR/aspnetcore/Runtime/$aspnetcore_internal_version"
cp "artifacts/packages/$ASPNETCORE_CONF/Shipping/Microsoft.AspNetCore.App.Runtime.linux-$ARCH.$ASPNETCORE_VERSION.nupkg" "$OUTPUTDIR"
fi
[ -z "${NO_SAVE_TEMPS+x}" ] || git clean -dfx
popd

INSTALLER_CONF=Release
Expand Down Expand Up @@ -271,4 +276,5 @@ fi
if [ -z ${SKIP_PACKAGE_INSTALLER+x} ] && [ ! -e .skip-package ]; then
cp "artifacts/packages/$INSTALLER_CONF/Shipping/dotnet-sdk-$INSTALLER_VERSION-linux-$ARCH.tar.gz" "$OUTPUTDIR"
fi
[ -z "${NO_SAVE_TEMPS+x}" ] || git clean -dfx
popd

0 comments on commit 3486121

Please sign in to comment.