Skip to content

Commit

Permalink
Add RIDs for macOS 13; update test
Browse files Browse the repository at this point in the history
  • Loading branch information
filipnavara committed Sep 11, 2022
1 parent 1f6ebd0 commit 8bb05d4
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6040,6 +6040,78 @@
"any",
"base"
],
"osx.13": [
"osx.13",
"osx.12",
"osx.11.0",
"osx.10.16",
"osx.10.15",
"osx.10.14",
"osx.10.13",
"osx.10.12",
"osx.10.11",
"osx.10.10",
"osx",
"unix",
"any",
"base"
],
"osx.13-arm64": [
"osx.13-arm64",
"osx.13",
"osx.12-arm64",
"osx.12",
"osx.11.0-arm64",
"osx.11.0",
"osx.10.16-arm64",
"osx.10.16",
"osx.10.15-arm64",
"osx.10.15",
"osx.10.14-arm64",
"osx.10.14",
"osx.10.13-arm64",
"osx.10.13",
"osx.10.12-arm64",
"osx.10.12",
"osx.10.11-arm64",
"osx.10.11",
"osx.10.10-arm64",
"osx.10.10",
"osx-arm64",
"osx",
"unix-arm64",
"unix",
"any",
"base"
],
"osx.13-x64": [
"osx.13-x64",
"osx.13",
"osx.12-x64",
"osx.12",
"osx.11.0-x64",
"osx.11.0",
"osx.10.16-x64",
"osx.10.16",
"osx.10.15-x64",
"osx.10.15",
"osx.10.14-x64",
"osx.10.14",
"osx.10.13-x64",
"osx.10.13",
"osx.10.12-x64",
"osx.10.12",
"osx.10.11-x64",
"osx.10.11",
"osx.10.10-x64",
"osx.10.10",
"osx-x64",
"osx",
"unix-x64",
"unix",
"any",
"base"
],
"rhel": [
"rhel",
"linux",
Expand Down
17 changes: 17 additions & 0 deletions src/libraries/Microsoft.NETCore.Platforms/src/runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -2360,6 +2360,23 @@
"osx.11.0-x64"
]
},
"osx.13": {
"#import": [
"osx.12"
]
},
"osx.13-arm64": {
"#import": [
"osx.13",
"osx.12-arm64"
]
},
"osx.13-x64": {
"#import": [
"osx.13",
"osx.12-x64"
]
},
"rhel": {
"#import": [
"linux"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
<RuntimeGroup Include="osx">
<Parent>unix</Parent>
<Architectures>x64;arm64</Architectures>
<Versions>10.10;10.11;10.12;10.13;10.14;10.15;10.16;11.0;12</Versions>
<Versions>10.10;10.11;10.12;10.13;10.14;10.15;10.16;11.0;12;13</Versions>
</RuntimeGroup>

<RuntimeGroup Include="freebsd">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,15 @@ public void CanAddArchitectureToExistingGroups()
[Fact]
public void CanAddArchitectureAndVersionToExistingGroups()
{
var additionalRIDs = new[] { "osx.12-powerpc" };
var additionalRIDs = new[] { "osx.13-powerpc" };
var expectedAdditions = new[]
{
new RuntimeDescription("osx.12-powerpc", new[] { "osx.12", "osx.11.0-powerpc" }),
new RuntimeDescription("osx.12-arm64", new[] { "osx.12", "osx.11.0-arm64" }),
new RuntimeDescription("osx.12-x64", new[] { "osx.12", "osx.11.0-x64" }),
new RuntimeDescription("osx.12", new[] { "osx.11.0" }),
new RuntimeDescription("osx.13-powerpc", new[] { "osx.13", "osx.12-powerpc" }),
new RuntimeDescription("osx.13-arm64", new[] { "osx.13", "osx.12-arm64" }),
new RuntimeDescription("osx.13-x64", new[] { "osx.13", "osx.12-x64" }),
new RuntimeDescription("osx.13", new[] { "osx.12" }),
// our RID model doesn't give priority to architecture, so the new architecture is applied to all past versions
new RuntimeDescription("osx.12-powerpc", new[] { "osx.12", "osx.11.0-powerpc" }),
new RuntimeDescription("osx.11.0-powerpc", new[] { "osx.11.0", "osx.10.16-powerpc" }),
new RuntimeDescription("osx.10.16-powerpc", new[] { "osx.10.16", "osx.10.15-powerpc" }),
new RuntimeDescription("osx.10.15-powerpc", new[] { "osx.10.15", "osx.10.14-powerpc" }),
Expand Down

0 comments on commit 8bb05d4

Please sign in to comment.