Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion patches/last_processed_commit.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1060fd3acfef295496f6843c2ec134fd74a70dc5
aea9aaa3a0b49933412c6f59d7f05be037207a28
44 changes: 22 additions & 22 deletions patches/runner-main-sdk8-arm.patch
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ index 5613d3c2..d4ab08e5 100644
+ <PropertyGroup Condition="'$(BUILD_OS)' == 'Linux' AND '$(PackageRuntime)' == 'linux-arm'">
+ <DefineConstants>$(DefineConstants);ARM</DefineConstants>
+ </PropertyGroup>

<!-- Set TRACE/DEBUG vars -->
<PropertyGroup>
diff --git a/src/Misc/externals.sh b/src/Misc/externals.sh
Expand All @@ -19,7 +19,7 @@ index ccb4e7c9..6507aba6 100755
@@ -2,6 +2,9 @@
PACKAGERUNTIME=$1
PRECACHE=$2

+# Canonical ARM32-only runtime; kept separate from upstream Node version pins.
+NODE22_VERSION="22.23.4"
+
Expand All @@ -40,12 +40,12 @@ index 35e44227..e15e9478 100755
+++ b/src/Misc/layoutbin/runsvc.sh
@@ -11,6 +11,9 @@ if [ -f ".path" ]; then
fi

nodever="node24"
+if [[ "$(uname -m)" == "armv7l" ]]; then
+ nodever="node22"
+fi

# insert anything to setup env when running as a service
# run the host process which keep the listener alive
diff --git a/src/Runner.Common/Constants.cs b/src/Runner.Common/Constants.cs
Expand All @@ -55,19 +55,19 @@ index 4d48cc36..93dc2176 100644
@@ -86,6 +86,8 @@ namespace GitHub.Runner.Common
public static readonly Architecture PlatformArchitecture = Architecture.X64;
#endif

+ public static readonly string Arm32NodeVersion = "node22";
+
public static readonly TimeSpan ExitOnUnloadTimeout = TimeSpan.FromSeconds(30);

public static class CommandLine
diff --git a/src/Runner.Common/Runner.Common.csproj b/src/Runner.Common/Runner.Common.csproj
index 257a759a..5047627a 100644
--- a/src/Runner.Common/Runner.Common.csproj
+++ b/src/Runner.Common/Runner.Common.csproj
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
- <TargetFramework>net8.0</TargetFramework>
+ <TargetFramework>net9.0</TargetFramework>
Expand All @@ -91,7 +91,7 @@ index e33de2e8..a37ac4a8 100644
+ Constants.Runner.Platform == Constants.OSPlatform.Linux
+ ? new[] { Constants.Runner.Arm32NodeVersion }
+ : new[] { "node24" });

public static string GetInternalNodeVersion()
{
- return "node24";
Expand All @@ -108,7 +108,7 @@ index 08adb988..5c2c2d11 100644
+++ b/src/Runner.Listener/Runner.Listener.csproj
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
- <TargetFramework>net8.0</TargetFramework>
+ <TargetFramework>net9.0</TargetFramework>
Expand All @@ -124,7 +124,7 @@ index 51ee3ce4..49272a23 100644
+++ b/src/Runner.PluginHost/Runner.PluginHost.csproj
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
- <TargetFramework>net8.0</TargetFramework>
+ <TargetFramework>net9.0</TargetFramework>
Expand All @@ -140,7 +140,7 @@ index 1ddd57eb..60d7662b 100644
+++ b/src/Runner.Plugins/Runner.Plugins.csproj
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
- <TargetFramework>net8.0</TargetFramework>
+ <TargetFramework>net9.0</TargetFramework>
Expand All @@ -156,7 +156,7 @@ index 278bb064..a27289f6 100644
+++ b/src/Runner.Sdk/Runner.Sdk.csproj
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
- <TargetFramework>net8.0</TargetFramework>
+ <TargetFramework>net9.0</TargetFramework>
Expand All @@ -173,15 +173,15 @@ index 88818c5f..a60ffb41 100644
@@ -55,8 +55,11 @@ namespace GitHub.Runner.Worker.Handlers
handler = HostContext.CreateService<INodeScriptActionHandler>();
var nodeData = data as NodeJSActionExecutionData;

- // Keep accepting legacy action manifests, but execute all JavaScript actions using node24.
- nodeData.NodeVersion = "node24";
+ // ARM32 has no Node 24 binary; use the fork-provided Node 22 bundle.
+ nodeData.NodeVersion = Constants.Runner.PlatformArchitecture == Constants.Architecture.Arm &&
+ Constants.Runner.Platform == Constants.OSPlatform.Linux
+ ? Constants.Runner.Arm32NodeVersion
+ : "node24";

(handler as INodeScriptActionHandler).Data = nodeData;
}
diff --git a/src/Runner.Worker/Runner.Worker.csproj b/src/Runner.Worker/Runner.Worker.csproj
Expand All @@ -190,7 +190,7 @@ index 33e2b2ff..44528d75 100644
+++ b/src/Runner.Worker/Runner.Worker.csproj
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
- <TargetFramework>net8.0</TargetFramework>
+ <TargetFramework>net9.0</TargetFramework>
Expand All @@ -206,7 +206,7 @@ index c02c7b78..66820c92 100644
+++ b/src/Sdk/Sdk.csproj
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
- <TargetFramework>net8.0</TargetFramework>
+ <TargetFramework>net9.0</TargetFramework>
Expand Down Expand Up @@ -237,7 +237,7 @@ index 5e52cf98..aad83ee5 100644
+using GitHub.Runner.Common;
using GitHub.Runner.Common.Util;
using Xunit;

@@ -6,36 +6,30 @@ namespace GitHub.Runner.Common.Tests.Util
{
public class NodeUtilL0
Expand All @@ -263,7 +263,7 @@ index 5e52cf98..aad83ee5 100644
+ Constants.Runner.Platform == Constants.OSPlatform.Linux
+ ? Constants.Runner.Arm32NodeVersion
+ : "node24";

- Assert.Equal("node24", NodeUtil.GetInternalNodeVersion());
- }
- finally
Expand All @@ -272,7 +272,7 @@ index 5e52cf98..aad83ee5 100644
- }
+ Assert.Equal(expected, NodeUtil.GetInternalNodeVersion());
}

[Fact]
[Trait("Level", "L0")]
[Trait("Category", "Common")]
Expand All @@ -294,7 +294,7 @@ index 001503a0..9819d338 100644
--- a/src/Test/L0/Worker/HandlerFactoryL0.cs
+++ b/src/Test/L0/Worker/HandlerFactoryL0.cs
@@ -89,7 +89,11 @@ namespace GitHub.Runner.Common.Tests.Worker

Assert.NotNull(handler);
Assert.Same(data, handler.Data);
- Assert.Equal("node24", handler.Data.NodeVersion);
Expand Down Expand Up @@ -332,7 +332,7 @@ index 6eb6df20..582f7b57 100755
+DOTNETSDK_VERSION="9.0.318"
DOTNETSDK_INSTALLDIR="$DOTNETSDK_ROOT/$DOTNETSDK_VERSION"
RUNNER_VERSION=$(cat runnerversion)

@@ -52,10 +52,7 @@ elif [[ "$CURRENT_PLATFORM" == 'linux' ]]; then
if command -v uname > /dev/null; then
CPU_NAME=$(uname -m)
Expand Down Expand Up @@ -365,4 +365,4 @@ index 67f951ec..70cfe5c2 100644
+ "version": "9.0.318"
}
}
# From upstream commit: 1060fd3acfef295496f6843c2ec134fd74a70dc5
# From upstream commit: aea9aaa3a0b49933412c6f59d7f05be037207a28
32 changes: 16 additions & 16 deletions patches/runner-main-sdk8-ppc64le.patch
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ index 5613d3c2..b78cdb6d 100644
+ <PropertyGroup Condition="'$(BUILD_OS)' == 'Linux' AND '$(PackageRuntime)' == 'linux-s390x'">
+ <DefineConstants>$(DefineConstants);S390X</DefineConstants>
+ </PropertyGroup>

<!-- Set TRACE/DEBUG vars -->
<PropertyGroup>
diff --git a/src/Misc/externals.sh b/src/Misc/externals.sh
Expand All @@ -35,9 +35,9 @@ index 14cc6bab..c8ed8b92 100755
--- a/src/Misc/layoutroot/config.sh
+++ b/src/Misc/layoutroot/config.sh
@@ -20,25 +20,29 @@ then

message="Execute sudo ./bin/installdependencies.sh to install any missing Dotnet Core 6.0 dependencies."

- ldd ./bin/libcoreclr.so | grep 'not found'
- if [ $? -eq 0 ]; then
- echo "Dependencies is missing for Dotnet Core 6.0"
Expand All @@ -53,7 +53,7 @@ index 14cc6bab..c8ed8b92 100755
+ echo $message
+ exit 1
+ fi

- ldd ./bin/libSystem.Security.Cryptography.Native.OpenSsl.so | grep 'not found'
- if [ $? -eq 0 ]; then
- echo "Dependencies is missing for Dotnet Core 6.0"
Expand All @@ -66,7 +66,7 @@ index 14cc6bab..c8ed8b92 100755
+ echo $message
+ exit 1
+ fi

- ldd ./bin/libSystem.IO.Compression.Native.so | grep 'not found'
- if [ $? -eq 0 ]; then
- echo "Dependencies is missing for Dotnet Core 6.0"
Expand All @@ -79,7 +79,7 @@ index 14cc6bab..c8ed8b92 100755
+ exit 1
+ fi
fi

if ! [ -x "$(command -v ldconfig)" ]; then
diff --git a/src/Runner.Common/Constants.cs b/src/Runner.Common/Constants.cs
index 4d48cc36..88933e22 100644
Expand All @@ -94,7 +94,7 @@ index 4d48cc36..88933e22 100644
+ Ppc64le,
+ S390x
}

public static class Runner
@@ -82,6 +84,10 @@ namespace GitHub.Runner.Common
public static readonly Architecture PlatformArchitecture = Architecture.Arm;
Expand Down Expand Up @@ -211,7 +211,7 @@ index 8003dd07..06f6c9fd 100644
using System.Collections.Generic;
using System.IO;
@@ -16,6 +16,7 @@ using Xunit;

namespace GitHub.Runner.Common.Tests.Listener
{
+ #if !PPC64LE && !S390X && !X64 // Self-update is not currently supported on PPC64LE
Expand Down Expand Up @@ -242,7 +242,7 @@ index d2cb1906..f1251017 100644
@@ -31,6 +31,7 @@ namespace GitHub.Runner.Common.Tests.Worker
return hc;
}

+#if !PPC64LE && !S390X
[Theory]
[Trait("Level", "L0")]
Expand Down Expand Up @@ -293,24 +293,24 @@ index 6eb6df20..db6fcb28 100755
@@ -202,8 +204,7 @@ function package ()
popd > /dev/null
}

-# Install .NET SDK
-if [[ (! -d "${DOTNETSDK_INSTALLDIR}") || (! -e "${DOTNETSDK_INSTALLDIR}/.${DOTNETSDK_VERSION}") || (! -e "${DOTNETSDK_INSTALLDIR}/dotnet") ]]; then
+if [[ "${RUNTIME_ID}" != "linux-ppc64le" && "${RUNTIME_ID}" != "linux-s390x" && "${RUNTIME_ID}" != "linux-x64" && ((! -d "${DOTNETSDK_INSTALLDIR}") || (! -e "${DOTNETSDK_INSTALLDIR}/.${DOTNETSDK_VERSION}") || (! -e "${DOTNETSDK_INSTALLDIR}/dotnet")) ]]; then

# Download dotnet SDK to ../_dotnetsdk directory
heading "Ensure Dotnet SDK"
@@ -228,8 +229,10 @@ if [[ (! -d "${DOTNETSDK_INSTALLDIR}") || (! -e "${DOTNETSDK_INSTALLDIR}/.${DOTN
echo "${DOTNETSDK_VERSION}" > "${DOTNETSDK_INSTALLDIR}/.${DOTNETSDK_VERSION}"
fi

-echo "Prepend ${DOTNETSDK_INSTALLDIR} to %PATH%"
-export PATH=${DOTNETSDK_INSTALLDIR}:$PATH
+if [[ -d "${DOTNETSDK_INSTALLDIR}" ]]; then
+ echo "Prepend ${DOTNETSDK_INSTALLDIR} to %PATH%"
+ export PATH=${DOTNETSDK_INSTALLDIR}:$PATH
+fi

heading "Dotnet SDK Version"
dotnet --version
diff --git a/src/dir.proj b/src/dir.proj
Expand All @@ -319,7 +319,7 @@ index 056a312e..52cb25ca 100644
+++ b/src/dir.proj
@@ -41,8 +41,17 @@
</ItemGroup>

<Target Name="Build" DependsOnTargets="GenerateConstant">
- <MSBuild Targets="Restore" Projects="@(ProjectFiles)" StopOnFirstFailure="true" />
- <MSBuild Targets="Publish" Projects="@(ProjectFiles)" BuildInParallel="false" StopOnFirstFailure="true" Properties="Configuration=$(BUILDCONFIG);PackageRuntime=$(PackageRuntime);Version=$(RunnerVersion);RuntimeIdentifier=$(PackageRuntime);PublishDir=$(MSBuildProjectDirectory)/../_layout/bin" />
Expand All @@ -336,5 +336,5 @@ index 056a312e..52cb25ca 100644
+ <MSBuild Targets="Publish" Projects="@(ProjectFiles)" BuildInParallel="false" StopOnFirstFailure="true" Properties="Configuration=$(BUILDCONFIG);PackageRuntime=$(PackageRuntime);Version=$(RunnerVersion);$(PublishRuntimeIdentifier);PublishDir=$(MSBuildProjectDirectory)/../_layout/bin" />
<Exec Command="%22$(DesktopMSBuild)%22 Runner.Service/Windows/RunnerService.csproj /p:Configuration=$(BUILDCONFIG) /p:PackageRuntime=$(PackageRuntime) /p:OutputPath=%22$(MSBuildProjectDirectory)/../_layout/bin%22" ConsoleToMSBuild="true" Condition="'$(PackageRuntime)' == 'win-x64' Or '$(PackageRuntime)' == 'win-x86' Or '$(PackageRuntime)' == 'win-arm64'" />
</Target>

# From upstream commit: 1060fd3acfef295496f6843c2ec134fd74a70dc5
# From upstream commit: aea9aaa3a0b49933412c6f59d7f05be037207a28
Loading
Loading