From 2100ebcdb143e29b25c3917343da5fa5419178b3 Mon Sep 17 00:00:00 2001 From: chenguohui Date: Thu, 3 Jul 2025 10:35:25 +0800 Subject: [PATCH 1/5] [LA] Add LOONGARCH64 to DefineConstants conditionally --- src/Directory.Build.props | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 9c069b12f6f..4e150857f6d 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -44,6 +44,9 @@ $(DefineConstants);ARM64 + + $(DefineConstants);LOONGARCH64 + From c005766bae1243d66c790f0a22058fcb57edd686 Mon Sep 17 00:00:00 2001 From: chenguohui Date: Thu, 3 Jul 2025 10:38:05 +0800 Subject: [PATCH 2/5] [LA] Add linux-loongarch64 to RuntimeIdentifiers in csprojs --- src/Runner.Common/Runner.Common.csproj | 2 +- src/Runner.Listener/Runner.Listener.csproj | 2 +- src/Runner.PluginHost/Runner.PluginHost.csproj | 2 +- src/Runner.Plugins/Runner.Plugins.csproj | 2 +- src/Runner.Sdk/Runner.Sdk.csproj | 2 +- src/Runner.Worker/Runner.Worker.csproj | 2 +- src/Sdk/Sdk.csproj | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Runner.Common/Runner.Common.csproj b/src/Runner.Common/Runner.Common.csproj index 6c4635626a2..5a4d0575e04 100644 --- a/src/Runner.Common/Runner.Common.csproj +++ b/src/Runner.Common/Runner.Common.csproj @@ -3,7 +3,7 @@ net8.0 Library - win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64 + win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64;linux-loongarch64 true NU1701;NU1603;SYSLIB0050;SYSLIB0051 $(Version) diff --git a/src/Runner.Listener/Runner.Listener.csproj b/src/Runner.Listener/Runner.Listener.csproj index 68df8fbbc67..78367b4e611 100644 --- a/src/Runner.Listener/Runner.Listener.csproj +++ b/src/Runner.Listener/Runner.Listener.csproj @@ -3,7 +3,7 @@ net8.0 Exe - win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64 + win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64;linux-loongarch64 true true NU1701;NU1603;SYSLIB0050;SYSLIB0051 diff --git a/src/Runner.PluginHost/Runner.PluginHost.csproj b/src/Runner.PluginHost/Runner.PluginHost.csproj index 81a8d2e4304..f9a3047a208 100644 --- a/src/Runner.PluginHost/Runner.PluginHost.csproj +++ b/src/Runner.PluginHost/Runner.PluginHost.csproj @@ -3,7 +3,7 @@ net8.0 Exe - win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64 + win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64;linux-loongarch64 true true NU1701;NU1603;SYSLIB0050;SYSLIB0051 diff --git a/src/Runner.Plugins/Runner.Plugins.csproj b/src/Runner.Plugins/Runner.Plugins.csproj index a786cf1cd1b..568162ce5b4 100644 --- a/src/Runner.Plugins/Runner.Plugins.csproj +++ b/src/Runner.Plugins/Runner.Plugins.csproj @@ -3,7 +3,7 @@ net8.0 Library - win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64 + win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64;linux-loongarch64 true true NU1701;NU1603;SYSLIB0050;SYSLIB0051 diff --git a/src/Runner.Sdk/Runner.Sdk.csproj b/src/Runner.Sdk/Runner.Sdk.csproj index 55dbf12627c..4414d8a7907 100644 --- a/src/Runner.Sdk/Runner.Sdk.csproj +++ b/src/Runner.Sdk/Runner.Sdk.csproj @@ -3,7 +3,7 @@ net8.0 Library - win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64 + win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64;linux-loongarch64 true true NU1701;NU1603;SYSLIB0050;SYSLIB0051 diff --git a/src/Runner.Worker/Runner.Worker.csproj b/src/Runner.Worker/Runner.Worker.csproj index 4470920e10c..2fe38492471 100644 --- a/src/Runner.Worker/Runner.Worker.csproj +++ b/src/Runner.Worker/Runner.Worker.csproj @@ -3,7 +3,7 @@ net8.0 Exe - win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64 + win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64;linux-loongarch64 true true NU1701;NU1603;SYSLIB0050;SYSLIB0051 diff --git a/src/Sdk/Sdk.csproj b/src/Sdk/Sdk.csproj index 633e8c222e9..0d0ea5b0dcf 100644 --- a/src/Sdk/Sdk.csproj +++ b/src/Sdk/Sdk.csproj @@ -3,7 +3,7 @@ net8.0 Library - win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64 + win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64;linux-loongarch64 true NU1701;NU1603;SYSLIB0050;SYSLIB0051 From 1856f43de5fa5cd20d0089b47bf3f08a16da1194 Mon Sep 17 00:00:00 2001 From: chenguohui Date: Thu, 3 Jul 2025 10:41:23 +0800 Subject: [PATCH 3/5] [LA] Add LoongArch64 to Constants --- src/Runner.Common/Constants.cs | 5 ++++- src/Runner.Common/Util/VarUtil.cs | 2 ++ src/Test/L0/ConstantGenerationL0.cs | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Runner.Common/Constants.cs b/src/Runner.Common/Constants.cs index 03d01b6288d..99613802ac2 100644 --- a/src/Runner.Common/Constants.cs +++ b/src/Runner.Common/Constants.cs @@ -59,7 +59,8 @@ public enum Architecture X86, X64, Arm, - Arm64 + Arm64, + LoongArch64 } public static class Runner @@ -82,6 +83,8 @@ public static class Runner public static readonly Architecture PlatformArchitecture = Architecture.Arm; #elif ARM64 public static readonly Architecture PlatformArchitecture = Architecture.Arm64; +#elif LOONGARCH64 + public static readonly Architecture PlatformArchitecture = Architecture.LoongArch64; #else public static readonly Architecture PlatformArchitecture = Architecture.X64; #endif diff --git a/src/Runner.Common/Util/VarUtil.cs b/src/Runner.Common/Util/VarUtil.cs index 97273a1adb3..3b7795de7e7 100644 --- a/src/Runner.Common/Util/VarUtil.cs +++ b/src/Runner.Common/Util/VarUtil.cs @@ -53,6 +53,8 @@ public static string OSArchitecture return "ARM"; case Constants.Architecture.Arm64: return "ARM64"; + case Constants.Architecture.LoongArch64: + return "LOONGARCH64"; default: throw new NotSupportedException(); // Should never reach here. } diff --git a/src/Test/L0/ConstantGenerationL0.cs b/src/Test/L0/ConstantGenerationL0.cs index f3c1b8f9eaf..4bbd5b0e61b 100644 --- a/src/Test/L0/ConstantGenerationL0.cs +++ b/src/Test/L0/ConstantGenerationL0.cs @@ -20,6 +20,7 @@ public void BuildConstantGenerateSucceed() "linux-x64", "linux-arm", "linux-arm64", + "linux-loongarch64", "osx-x64", "osx-arm64" }; From 84042f488b8572d58dd3f4d8ab0d8b7de8b4eb4c Mon Sep 17 00:00:00 2001 From: chenguohui Date: Fri, 11 Jul 2025 09:01:35 +0800 Subject: [PATCH 4/5] [LA] Revert the addtion linux-loongarch64 in src/Runner.Common/Runner.Common.csproj --- src/Runner.Common/Runner.Common.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Runner.Common/Runner.Common.csproj b/src/Runner.Common/Runner.Common.csproj index 5a4d0575e04..6c4635626a2 100644 --- a/src/Runner.Common/Runner.Common.csproj +++ b/src/Runner.Common/Runner.Common.csproj @@ -3,7 +3,7 @@ net8.0 Library - win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64;linux-loongarch64 + win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64 true NU1701;NU1603;SYSLIB0050;SYSLIB0051 $(Version) From ab581fbde1adc2fa7ae5870fa5924b6bae8cb7c7 Mon Sep 17 00:00:00 2001 From: chenguohui Date: Fri, 11 Jul 2025 09:18:40 +0800 Subject: [PATCH 5/5] Revert "[LA] Add linux-loongarch64 to RuntimeIdentifiers in csprojs" This reverts commit c005766bae1243d66c790f0a22058fcb57edd686. --- src/Runner.Listener/Runner.Listener.csproj | 2 +- src/Runner.PluginHost/Runner.PluginHost.csproj | 2 +- src/Runner.Plugins/Runner.Plugins.csproj | 2 +- src/Runner.Sdk/Runner.Sdk.csproj | 2 +- src/Runner.Worker/Runner.Worker.csproj | 2 +- src/Sdk/Sdk.csproj | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Runner.Listener/Runner.Listener.csproj b/src/Runner.Listener/Runner.Listener.csproj index 78367b4e611..68df8fbbc67 100644 --- a/src/Runner.Listener/Runner.Listener.csproj +++ b/src/Runner.Listener/Runner.Listener.csproj @@ -3,7 +3,7 @@ net8.0 Exe - win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64;linux-loongarch64 + win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64 true true NU1701;NU1603;SYSLIB0050;SYSLIB0051 diff --git a/src/Runner.PluginHost/Runner.PluginHost.csproj b/src/Runner.PluginHost/Runner.PluginHost.csproj index f9a3047a208..81a8d2e4304 100644 --- a/src/Runner.PluginHost/Runner.PluginHost.csproj +++ b/src/Runner.PluginHost/Runner.PluginHost.csproj @@ -3,7 +3,7 @@ net8.0 Exe - win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64;linux-loongarch64 + win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64 true true NU1701;NU1603;SYSLIB0050;SYSLIB0051 diff --git a/src/Runner.Plugins/Runner.Plugins.csproj b/src/Runner.Plugins/Runner.Plugins.csproj index 568162ce5b4..a786cf1cd1b 100644 --- a/src/Runner.Plugins/Runner.Plugins.csproj +++ b/src/Runner.Plugins/Runner.Plugins.csproj @@ -3,7 +3,7 @@ net8.0 Library - win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64;linux-loongarch64 + win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64 true true NU1701;NU1603;SYSLIB0050;SYSLIB0051 diff --git a/src/Runner.Sdk/Runner.Sdk.csproj b/src/Runner.Sdk/Runner.Sdk.csproj index 4414d8a7907..55dbf12627c 100644 --- a/src/Runner.Sdk/Runner.Sdk.csproj +++ b/src/Runner.Sdk/Runner.Sdk.csproj @@ -3,7 +3,7 @@ net8.0 Library - win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64;linux-loongarch64 + win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64 true true NU1701;NU1603;SYSLIB0050;SYSLIB0051 diff --git a/src/Runner.Worker/Runner.Worker.csproj b/src/Runner.Worker/Runner.Worker.csproj index 2fe38492471..4470920e10c 100644 --- a/src/Runner.Worker/Runner.Worker.csproj +++ b/src/Runner.Worker/Runner.Worker.csproj @@ -3,7 +3,7 @@ net8.0 Exe - win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64;linux-loongarch64 + win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64 true true NU1701;NU1603;SYSLIB0050;SYSLIB0051 diff --git a/src/Sdk/Sdk.csproj b/src/Sdk/Sdk.csproj index 0d0ea5b0dcf..633e8c222e9 100644 --- a/src/Sdk/Sdk.csproj +++ b/src/Sdk/Sdk.csproj @@ -3,7 +3,7 @@ net8.0 Library - win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64;linux-loongarch64 + win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64 true NU1701;NU1603;SYSLIB0050;SYSLIB0051