Repository navigation
Re-enable macOS CI - #1962
Re-enable macOS CI#1962
Conversation
1609cbf to
2936a9d
Compare
2936a9d to
b563bca
Compare
| <Target Name="InstallJustBuiltRuntime" AfterTargets="RemoveBuiltPackagesFromCache"> | ||
| <!-- Install the runtime that was just built to be used by downstream repos, namely, aspnetcore --> | ||
| <Exec Command="tar -xvf $(SourceBuiltAssetsDir)dotnet-runtime-$(runtimeOutputPackageVersion)-$(TargetRid).tar.gz -C $(DotNetCliToolDir)" /> | ||
| <Exec Command="tar -xvf $(SourceBuiltAssetsDir)dotnet-runtime-$(runtimeOutputPackageVersion)-$(OverrideTargetRid).tar.gz -C $(DotNetCliToolDir)" /> |
There was a problem hiding this comment.
Is there any way this can break portable or non-portable builds? I don't fully understand how this was working for portable Linux builds: are those only triggered via runtime-portable.proj?
There was a problem hiding this comment.
This has gotten pretty convoluted... I think this works because when we do a portable build, we also always also do a non-portable build. Then on macOS (and a few others), even when built using non-portable flags, this runtime.proj is forced to build a non-portableportable (edit) RID anyway.
There was a problem hiding this comment.
I think the change is correct. It shouldn't impact non-portable builds. In a non-portable Linux build, TargetRid and OverrideTargetRid are the same. For OSX builds, OverrideTargetRid gets updated and used correctly based on this change. For portable Linux builds, as Davis stated, both portable and non-portable builds occur. The non-portable build runs this target via runtime.proj and OverrideTargetRid is the same as TargetRid. The portable build does not run this target because it is triggered by runtime-portable.proj.
This comment has been minimized.
This comment has been minimized.
b563bca to
7df8a81
Compare
Enable the currently-commented out CI setup for macOS. Fix the find command used for logger: - Always specify path: the macOS version of find needs that or a -path argument to work. - The regex engines differ between GNU find and macOS find. The `\|` part is parsed differently by both of them. Use a simpler regex that they can both support. Use `TargetOverrideRid` (`osx-x64`) instead of `TargetRid` (`osx.10.13-x64`) to determine the RID of the runtime tarball. Fixes: dotnet#1819
7df8a81 to
8ac9185
Compare
Enable the currently-commented out CI setup for macOS.
Fix the find command used for logger:
Always specify path: the macOS version of find needs that or a -path argument to work.
The regex engines differ between GNU find and macOS find. The
\|part is parsed differently by both of them. Use a simpler regex that they can both support.Use
TargetOverrideRid(osx-x64) instead ofTargetRid(osx.10.13-x64) to determine the RID of the runtime tarball.Fixes: #1819