-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Pass TargetRid and SourceBuildNonPortable to the native scripts #74504
Changes from all commits
45a8ea8
9d2af1d
a619594
599ef82
f39f890
3da8276
2fdda4a
d89911f
165206c
3499ee1
b1b93c2
cd699f0
8b7f3f9
9244703
77958f9
2b3a641
763dc66
a9da4af
502c373
0b228a7
5aa074a
1965c29
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,11 @@ steps: | |
targetRidArgs='/p:TargetRid=${{ parameters.platform.targetRID }}' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this changes eng/common so we need to make sure it is updated in dotnet/arcade or it'll get overwritten with the next arcade update There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've created dotnet/arcade#10782. |
||
fi | ||
|
||
runtimeOsArgs= | ||
if [ '${{ parameters.platform.runtimeOS }}' != '' ]; then | ||
runtimeOsArgs='/p:RuntimeOS=${{ parameters.platform.runtimeOS }}' | ||
fi | ||
|
||
publishArgs= | ||
if [ '${{ parameters.platform.skipPublishValidation }}' != 'true' ]; then | ||
publishArgs='--publish' | ||
|
@@ -75,6 +80,7 @@ steps: | |
$internalRuntimeDownloadArgs \ | ||
$internalRestoreArgs \ | ||
$targetRidArgs \ | ||
$runtimeOsArgs \ | ||
/p:SourceBuildNonPortable=${{ parameters.platform.nonPortable }} \ | ||
/p:ArcadeBuildFromSource=true | ||
displayName: Build | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<OutputPath>$(RuntimeBinDir)ilc/</OutputPath> | ||
<RuntimeIdentifier>$(OutputRid)</RuntimeIdentifier> | ||
<RuntimeIdentifier>$(PackageRID)</RuntimeIdentifier> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @MichalStrehovsky I think this may be breaking to the cross-compilation scenario. I see there is This first, I guess, is used for creating a NuGet package (host: arm64 -> target: arm64)? Is that right? I don't understand when/how There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It gets packed by a special project file pkgproj This change is correct. The reason we haven't gotten any complaints before is because we are not (yet) cross-compiling ILCompiler in a way that HostOS and TargetOS differ (the first part of RID...). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @am11 does There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
It collects the files from various location and packs them together in a zip (.nupkg) file. In this case, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds like we won't break anything then. From what you said, I wonder: does There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Good question. As I understood it; |
||
<RunAnalyzers>true</RunAnalyzers> | ||
</PropertyGroup> | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TargetRid
,RuntimeOS
, andBaseOS
should ripple down from source-build.TargetRid
names what is built.. The build will add this rid to graph. If it can't find a parent (for example,alpine.4.15-x64
findsalpine-x64
as the parent) thenBaseOS
is used as a parent. For example, ifOrange Linux
is a musl based version of Linux,BaseOS
should belinux-musl
.RuntimeOS
is the rid of the prebuilt SDK and artifacts that get used during the build. source-build/installer should set this to match the bootstrap SDK'sNETCoreSdkRuntimeIdentifier
.