-
Notifications
You must be signed in to change notification settings - Fork 867
ArPow stage 1: local source-build infrastructure #11208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
07eb0ec
ArPow stage 1: local source-build infrastructure
MichaelSimons 74f7138
Add clarification comments
MichaelSimons c110511
Merge branch 'main' of https://github.com/dotnet/fsharp into arpow-st…
MichaelSimons fb133e7
Rename build target per code review feedback
MichaelSimons ffc8c15
Merge branch 'main' of https://github.com/dotnet/fsharp into arpow-st…
MichaelSimons File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| <Project> | ||
|
|
||
| <PropertyGroup> | ||
| <GitHubRepositoryName>fsharp</GitHubRepositoryName> | ||
| <SourceBuildManagedOnly>true</SourceBuildManagedOnly> | ||
| </PropertyGroup> | ||
|
|
||
| <Target Name="ApplySourceBuildPatchFiles" | ||
| Condition=" | ||
| '$(ArcadeBuildFromSource)' == 'true' and | ||
| '$(ArcadeInnerBuildFromSource)' == 'true'" | ||
| BeforeTargets="Execute"> | ||
| <ItemGroup> | ||
| <SourceBuildPatchFile Include="$(RepositoryEngineeringDir)source-build-patches\*.patch" /> | ||
| </ItemGroup> | ||
|
|
||
| <Exec | ||
| Command="git apply --ignore-whitespace --whitespace=nowarn "%(SourceBuildPatchFile.FullPath)"" | ||
| WorkingDirectory="$(RepoRoot)" | ||
| Condition="'@(SourceBuildPatchFile)' != ''" /> | ||
| </Target> | ||
|
|
||
| <!-- | ||
| The build script passes in the full path of the sln to build. This must be overridden in order to build | ||
| the cloned source in the inner build. | ||
| --> | ||
| <Target Name="ConfigureInnerBuildArg" BeforeTargets="GetSourceBuildCommandConfiguration"> | ||
| <PropertyGroup> | ||
| <InnerBuildArgs>$(InnerBuildArgs) /p:Projects="$(InnerSourceBuildRepoRoot)\FSharp.sln"</InnerBuildArgs> | ||
| </PropertyGroup> | ||
| </Target> | ||
|
|
||
| <!-- | ||
| The build script bootstraps some tooling for the build. Since the inner build is triggerred via msbuild, | ||
| trigger the bootstrapping for the inner build. | ||
| --> | ||
| <Target Name="CopyBootstrap" | ||
| DependsOnTargets="PrepareInnerSourceBuildRepoRoot" | ||
| BeforeTargets="RunInnerSourceBuildCommand"> | ||
|
|
||
| <Exec | ||
| Command="./build.sh --bootstrap --skipBuild" | ||
| WorkingDirectory="$(InnerSourceBuildRepoRoot)" | ||
| EnvironmentVariables="@(InnerBuildEnv)" /> | ||
| </Target> | ||
|
|
||
| </Project> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| <UsageData> | ||
| <IgnorePatterns> | ||
| <UsagePattern IdentityGlob="*/*" /> | ||
| </IgnorePatterns> | ||
| </UsageData> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,17 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <Dependencies> | ||
| <ProductDependencies> | ||
| <Dependency Name="Microsoft.SourceBuild.Intermediate.xliff-tasks" Version="1.0.0-beta.21126.1"> | ||
| <Uri>https://github.com/dotnet/xliff-tasks</Uri> | ||
| <Sha>7e80445ee82adbf9a8e6ae601ac5e239d982afaa</Sha> | ||
| <SourceBuild RepoName="xliff-tasks" ManagedOnly="true" /> | ||
| </Dependency> | ||
| </ProductDependencies> | ||
| <ToolsetDependencies> | ||
| <Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.21125.5"> | ||
| <Uri>https://github.com/dotnet/arcade</Uri> | ||
| <Sha>15246f4af00a1cb2e580783d32ec2937b1878a64</Sha> | ||
| <SourceBuild RepoName="arcade" ManagedOnly="true"/> | ||
| </Dependency> | ||
| </ToolsetDependencies> | ||
| </Dependencies> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
eng/source-build-patches/0005-Fix-package-downgrade-warning.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| From 7f0d25bfaa9a38da2097c9420461232a08951165 Mon Sep 17 00:00:00 2001 | ||
| From: Chris Rummel <crummel@microsoft.com> | ||
| Date: Thu, 3 Sep 2020 19:02:07 -0500 | ||
| Subject: [PATCH 5/5] Fix package downgrade warning | ||
|
|
||
| --- | ||
| .../FSharp.Compiler.Service/FSharp.Compiler.Service.fsproj | 4 ++-- | ||
| .../Microsoft.FSharp.Compiler.nuspec | 4 ++-- | ||
| src/fsharp/fsc/fsc.fsproj | 1 + | ||
| 3 files changed, 7 insertions(+), 6 deletions(-) | ||
|
|
||
| diff --git a/src/fsharp/FSharp.Compiler.Service/FSharp.Compiler.Service.fsproj b/src/fsharp/FSharp.Compiler.Service/FSharp.Compiler.Service.fsproj | ||
| index aced6e1b4..fcdacc30b 100644 | ||
| --- a/src/fsharp/FSharp.Compiler.Service/FSharp.Compiler.Service.fsproj | ||
| +++ b/src/fsharp/FSharp.Compiler.Service/FSharp.Compiler.Service.fsproj | ||
| @@ -770,8 +770,8 @@ | ||
| <PackageReference Include="System.Threading.Tasks.Parallel" Version="$(SystemThreadingTasksParallelVersion)" /> | ||
| <PackageReference Include="System.Threading.Thread" Version="$(SystemThreadingThreadVersion)" /> | ||
| <PackageReference Include="System.Threading.ThreadPool" Version="$(SystemThreadingThreadPoolVersion)" /> | ||
| - <PackageReference Include="System.Buffers" Version="$(SystemBuffersVersion)" /> | ||
| - <PackageReference Include="System.Memory" Version="$(SystemMemoryVersion)" /> | ||
| + <PackageReference Include="System.Buffers" Version="4.5.1" /> | ||
| + <PackageReference Include="System.Memory" Version="4.5.4" /> | ||
| <PackageReference Include="Microsoft.Build.Framework" Version="$(MicrosoftBuildVersion)" /> | ||
| <PackageReference Include="Microsoft.Build.Tasks.Core" Version="$(MicrosoftBuildVersion)" /> | ||
| <PackageReference Include="Microsoft.Build.Utilities.Core" Version="$(MicrosoftBuildVersion)" /> | ||
| diff --git a/src/fsharp/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.nuspec b/src/fsharp/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.nuspec | ||
| index b96f90d2a..366488b47 100644 | ||
| --- a/src/fsharp/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.nuspec | ||
| +++ b/src/fsharp/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.nuspec | ||
| @@ -22,8 +22,8 @@ | ||
| <dependency id="System.Threading.Thread" version="4.3.0" /> | ||
| <dependency id="System.Threading.ThreadPool" version="4.3.0" /> | ||
| <dependency id="System.ValueTuple" version="4.4.0" /> | ||
| - <dependency id="System.Buffers" version="4.5.0" /> | ||
| - <dependency id="System.Memory" version="4.5.3" /> | ||
| + <dependency id="System.Buffers" version="4.5.1" /> | ||
| + <dependency id="System.Memory" version="4.5.4" /> | ||
| </group> | ||
| </dependencies> | ||
| <contentFiles> | ||
| diff --git a/src/fsharp/fsc/fsc.fsproj b/src/fsharp/fsc/fsc.fsproj | ||
| index 776cddc78..df16c1554 100644 | ||
| --- a/src/fsharp/fsc/fsc.fsproj | ||
| +++ b/src/fsharp/fsc/fsc.fsproj | ||
| @@ -45,6 +45,7 @@ | ||
| <PackageReference Include="System.Reflection.Metadata" Version="$(SystemReflectionMetadataVersion)" /> | ||
| <PackageReference Include="System.Runtime.Loader" Version="$(SystemRuntimeLoaderVersion)" /> | ||
| <PackageReference Include="System.Security.Principal" Version="$(SystemSecurityPrincipalVersion)" /> | ||
| + <PackageReference Include="System.Memory" Version="4.5.4" /> | ||
| </ItemGroup> | ||
|
|
||
| </Project> | ||
| -- | ||
| 2.18.0 | ||
|
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.