Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
c6074b1
Remove source-built dir from tarball in favor of prev source-built ar…
dseefeld Nov 15, 2019
8ebb121
Remove prebuilt nupkgs from the tarball. (#1348)
crummel Nov 15, 2019
e8c3007
Fix relative path
dseefeld Nov 15, 2019
5549f8a
Remove source-built dir from tarball in favor of prev source-built ar…
dseefeld Nov 15, 2019
6d06f30
Fix relative path
dseefeld Nov 15, 2019
114e60a
Add add'l pkgs to delete when generating tarball
dseefeld Nov 18, 2019
c6ba5b7
Sort additional prebuilts to delete text file
dseefeld Nov 18, 2019
1ce3b1b
Report all disallowed prebuilts on tarball creation
dseefeld Nov 18, 2019
44705e4
Add extra PVP entry for sourcelink in sourcelink and arcade only
dseefeld Nov 18, 2019
44bef38
Merge branch 'removeSourceBuilt' of https://github.com/dseefeld/sourc…
dseefeld Nov 18, 2019
feb9d91
Initial support for FreeBSD. (#1362)
wfurt Nov 18, 2019
296b2bc
Use boostrap version of sourcelink only for sourcelink
dseefeld Nov 18, 2019
71ffa02
Include coreclr-tools in source-built archive (#1369)
dseefeld Nov 19, 2019
6408e50
Update version of source-built archive
dseefeld Nov 21, 2019
d39586f
Remove source-built dir from tarball in favor of prev source-built ar…
dseefeld Nov 15, 2019
cf66b14
Fix relative path
dseefeld Nov 15, 2019
e9885d2
Add extra PVP entry for sourcelink in sourcelink and arcade only
dseefeld Nov 18, 2019
52be555
Use boostrap version of sourcelink only for sourcelink
dseefeld Nov 18, 2019
43b17f6
Update version of source-built archive
dseefeld Nov 21, 2019
d5c30f2
Merge branch 'removeSourceBuilt' of https://github.com/dseefeld/sourc…
dseefeld Nov 21, 2019
81e28aa
Add one prebuilt to additional-prebuilts-to-delete
dseefeld Nov 22, 2019
35ba6cc
Update version of SourceBuildReferencePackages
dseefeld Nov 25, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove source-built dir from tarball in favor of prev source-built ar…
…chive

- Remove copying of assets to source-built dir in tarball
- On initial tarball build, lookup boostrap versions of arcade, sourcelink
and DotNetHost from previously source-built archive and use those
versions when building arcade, sourcelink and corefx.
  • Loading branch information
dseefeld committed Nov 21, 2019
commit d39586f4059724544af9b6b195d7f06bbdd14fcc
6 changes: 0 additions & 6 deletions build-source-tarball.sh
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,6 @@ done
echo 'Copying source-built packages to tarball to replace packages needed before they are built...'
mkdir -p $TARBALL_ROOT/packages/source-built
cp -r $SCRIPT_ROOT/Tools/source-built/coreclr-tools $TARBALL_ROOT/packages/source-built/
cp $SCRIPT_ROOT/bin/obj/x64/Release/blob-feed/packages/*Arcade*.nupkg $TARBALL_ROOT/packages/source-built/
cp $SCRIPT_ROOT/bin/obj/x64/Release/blob-feed/packages/*SourceLink*.nupkg $TARBALL_ROOT/packages/source-built/
cp $SCRIPT_ROOT/bin/obj/x64/Release/blob-feed/packages/*Build*Tasks*.nupkg $TARBALL_ROOT/packages/source-built/
cp $SCRIPT_ROOT/bin/obj/x64/Release/blob-feed/packages/runtime*.nupkg $TARBALL_ROOT/packages/source-built/
cp $SCRIPT_ROOT/bin/obj/x64/Release/blob-feed/packages/*DotNetHost*.nupkg $TARBALL_ROOT/packages/source-built/
cp $SCRIPT_ROOT/bin/obj/x64/Release/blob-feed/packages/*DotNetAppHost*.nupkg $TARBALL_ROOT/packages/source-built/

# Setup package version props to include both source-built and running PackageVersions.props
mkdir --parents $TARBALL_ROOT/bin/obj/x64/Release/
Expand Down
2 changes: 1 addition & 1 deletion dir.props
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
<ItemGroup>
<!-- Arcade uses this property to determine which version of SourceLink to pull in -->
<ExtraPackageVersionPropsPackageInfo Condition="'$(OfflineBuild)' != 'true'" Include="MicrosoftSourceLinkVersion" Version="%24(MicrosoftSourceLinkCommonPackageVersion)" />
<ExtraPackageVersionPropsPackageInfo Condition="'$(OfflineBuild)' == 'true'" Include="MicrosoftSourceLinkVersion" Version="$(sourcelinkOutputPackageVersion)" />
<ExtraPackageVersionPropsPackageInfo Condition="'$(OfflineBuild)' == 'true'" Include="MicrosoftSourceLinkVersion" Version="$(SOURCE_LINK_BOOTSTRAP_VERSION)" />
<!-- we don't produce the Windows version of this package but that's the one core-sdk keys off of for the ASP.NET version -->
<ExtraPackageVersionPropsPackageInfo Include="MicrosoftAspNetCoreAppRuntimewinx64PackageVersion" Version="$(aspnetcoreOutputPackageVersion)" />
<!-- same thing here for CLI -->
Expand Down
4 changes: 2 additions & 2 deletions repos/corefx.proj
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
<BuildArguments>$(BuildArguments) /p:BuildAllPackages=true</BuildArguments>
<BuildArguments Condition="'$(OfflineBuild)' != 'true'">$(BuildArguments) /p:DotNetSourceBuildIntermediatePath=$(GeneratedSourcePathOnline)</BuildArguments>
<BuildArguments Condition="'$(OfflineBuild)' == 'true'">$(BuildArguments) /p:DotNetSourceBuildIntermediatePath=$(GeneratedSourcePathOffline)</BuildArguments>
<BuildArguments Condition="'$(OfflineBuild)' == 'true'">$(BuildArguments) /p:MicrosoftNETCoreDotNetHostPackageVersion=$(coresetupOutputPackageVersion)</BuildArguments>
<BuildArguments Condition="'$(OfflineBuild)' == 'true'">$(BuildArguments) /p:MicrosoftNETCoreDotNetHostPolicyPackageVersion=$(coresetupOutputPackageVersion)</BuildArguments>
<BuildArguments Condition="'$(OfflineBuild)' == 'true'">$(BuildArguments) /p:MicrosoftNETCoreDotNetHostPackageVersion=$(DOTNET_HOST_BOOTSTRAP_VERSION)</BuildArguments>
<BuildArguments Condition="'$(OfflineBuild)' == 'true'">$(BuildArguments) /p:MicrosoftNETCoreDotNetHostPolicyPackageVersion=$(DOTNET_HOST_BOOTSTRAP_VERSION)</BuildArguments>

<LogVerbosityOptOut>true</LogVerbosityOptOut>
<BuildArguments>$(BuildArguments) $(FlagParameterPrefix)verbosity $(LogVerbosity)</BuildArguments>
Expand Down
3 changes: 1 addition & 2 deletions repos/dir.props
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@
<PropertyGroup>
<ArcadeBootstrapDir Condition="'$(OfflineBuild)' != 'true'">$(PackagesDir)</ArcadeBootstrapDir>
<ArcadeBootstrapDir Condition="'$(OfflineBuild)' == 'true'">$(ArcadeBootstrapPackageDir)</ArcadeBootstrapDir>
<ArcadeBootstrapVersion Condition="'$(OfflineBuild)' != 'true'">$(ARCADE_BOOTSTRAP_VERSION)</ArcadeBootstrapVersion>
<ArcadeBootstrapVersion Condition="'$(OfflineBuild)' == 'true'">$(arcadeOutputPackageVersion)</ArcadeBootstrapVersion>
<ArcadeBootstrapVersion>$(ARCADE_BOOTSTRAP_VERSION)</ArcadeBootstrapVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
24 changes: 23 additions & 1 deletion support/tarball/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,29 @@ sdkPattern="\"dotnet\" *: *\"(.*)\""
if [[ $sdkLine =~ $sdkPattern ]]; then
export SDK_VERSION=${BASH_REMATCH[1]}
fi
echo "Found bootstrap SDK $SDK_VERSION"

sourceBuiltArchive=`find ./packages/archive -maxdepth 1 -name 'Private.SourceBuilt.Artifacts*.tar.gz'`
if [ -f "$sourceBuiltArchive" ]; then
tar -xzf "$sourceBuiltArchive" -C /tmp PackageVersions.props
arcadeSdkLine=`grep -m 1 'MicrosoftDotNetArcadeSdkVersion' /tmp/PackageVersions.props`
versionPattern="<MicrosoftDotNetArcadeSdkVersion>(.*)</MicrosoftDotNetArcadeSdkVersion>"
if [[ $arcadeSdkLine =~ $versionPattern ]]; then
export ARCADE_BOOTSTRAP_VERSION=${BASH_REMATCH[1]}
fi

sourceLinkLine=`grep -m 1 'MicrosoftSourceLinkCommonVersion' /tmp/PackageVersions.props`
versionPattern="<MicrosoftSourceLinkCommonVersion>(.*)</MicrosoftSourceLinkCommonVersion>"
if [[ $sourceLinkLine =~ $versionPattern ]]; then
export SOURCE_LINK_BOOTSTRAP_VERSION=${BASH_REMATCH[1]}
fi

dotNetHostLine=`grep -m 1 'MicrosoftNETCoreDotNetHostVersion' /tmp/PackageVersions.props`
versionPattern="<MicrosoftNETCoreDotNetHostVersion>(.*)</MicrosoftNETCoreDotNetHostVersion>"
if [[ $dotNetHostLine =~ $versionPattern ]]; then
export DOTNET_HOST_BOOTSTRAP_VERSION=${BASH_REMATCH[1]}
fi
fi
echo "Found bootstrap SDK $SDK_VERSION, bootstrap Arcade $ARCADE_BOOTSTRAP_VERSION, bootstrap SourceLink $SOURCE_LINK_BOOTSTRAP_VERSION, bootstrap DotNetHost $DOTNET_HOST_BOOTSTRAP_VERSION"
CLI_ROOT="$SCRIPT_ROOT/.dotnet"

export DOTNET_CLI_TELEMETRY_OPTOUT=1
Expand Down
6 changes: 3 additions & 3 deletions tools-local/init-build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@


<Target Name="ExtractToolPackage"
DependsOnTargets="BuildTasks"
DependsOnTargets="UnpackTarballs;BuildTasks"
Condition="'$(OfflineBuild)' == 'true'">
<ZipFileExtractToDirectory SourceArchive="$(PrebuiltSourceBuiltPackagesPath)Microsoft.DotNet.Arcade.Sdk.$(arcadeOutputPackageVersion).nupkg"
DestinationDirectory="$(ArcadeBootstrapPackageDir)microsoft.dotnet.arcade.sdk/$(arcadeOutputPackageVersion)/"
<ZipFileExtractToDirectory SourceArchive="$(PrebuiltSourceBuiltPackagesPath)Microsoft.DotNet.Arcade.Sdk.$(ARCADE_BOOTSTRAP_VERSION).nupkg"
DestinationDirectory="$(ArcadeBootstrapPackageDir)microsoft.dotnet.arcade.sdk/$(ARCADE_BOOTSTRAP_VERSION)/"
OverwriteDestination="true" />
</Target>

Expand Down