diff --git a/.github/release-note-canonical.md b/.github/release-note-canonical.md
index 54be38dc486..18d24415ef3 100644
--- a/.github/release-note-canonical.md
+++ b/.github/release-note-canonical.md
@@ -15,3 +15,10 @@ sudo add-apt-repository -y ppa:dotnet/backports
sudo apt-get install -y dotnet-runtime-8.0
```
+## Linux ARM32 runner override
+
+The ARM32 runner build retains the local `RUNNER_IGNORE_ARM32_KILL_SWITCH` environment variable. It is read only from the runner process environment, not from workflow variables or the Actions service. The default ignores service-driven ARM32 deprecation and kill signals; set it to `false` to explicitly re-enable them.
+
+## Runner package contents
+
+Package validation now checks that published bundles contain the expected Node runtime and version. Linux ARM32 bundles use Node 22; other Linux bundles use Node 24.
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 41a357425a8..206432cce4f 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -14,9 +14,14 @@ on:
paths-ignore:
- '**.md'
+concurrency:
+ group: runner-ci-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
jobs:
build:
strategy:
+ fail-fast: false
matrix:
runtime: [ linux-s390x, linux-ppc64le, linux-x64, linux-arm64, linux-arm ]
include:
@@ -83,6 +88,22 @@ jobs:
working-directory: src
if: matrix.runtime == 'linux-x64'
+ # L0 uses DEBUG-only test hooks; keep Release layout/package validation separate.
+ - name: L0 (native arm64)
+ if: matrix.runtime == 'linux-arm64'
+ run: |
+ unset ACTIONS_RUNNER_HOOK_JOB_STARTED ACTIONS_RUNNER_HOOK_JOB_COMPLETED
+ # 2026/11/25 - exclude ProcessExtensionL0.SuccessReadProcessEnv on arm64 because its one-shot /proc environment read races Node execve; remove after the upstream retry fix lands.
+ dotnet test Test/Test.csproj -c Debug /p:PackageRuntime=${{ matrix.runtime }} --logger:trx --filter "FullyQualifiedName!~GitHub.Runner.Common.Tests.ProcessExtensionL0"
+ working-directory: src
+
+ - name: L0 (native ppc64le/s390x)
+ if: matrix.runtime == 'linux-ppc64le' || matrix.runtime == 'linux-s390x'
+ run: |
+ unset ACTIONS_RUNNER_HOOK_JOB_STARTED ACTIONS_RUNNER_HOOK_JOB_COMPLETED
+ ./dev.sh test Debug ${{ matrix.runtime }}
+ working-directory: src
+
# Create runner package tar.gz/zip
- name: Package Release
if: github.event_name != 'pull_request'
@@ -96,6 +117,12 @@ jobs:
mkdir package_test
tar -xvzf ../_package/*.tar.gz -C package_test
./package_test/config.sh --version
+ # Validate the packaged payload, not only _layout: packaging can omit or mis-version bundled Node runtimes.
+ NODE24_VERSION=$(sed -n 's/^NODE24_VERSION="\([0-9.]*\)"/\1/p' Misc/externals.sh)
+ test -x package_test/externals/node24/bin/node
+ test ! -e package_test/externals/node20
+ test ! -e package_test/externals/node22
+ test "$(package_test/externals/node24/bin/node --version)" = "v$NODE24_VERSION"
working-directory: src
# linux-arm produces armv7l (32-bit) binaries that cannot execute on the
@@ -107,14 +134,20 @@ jobs:
run: |
mkdir package_test
tar -xzf ../_package/*.tar.gz -C package_test
+ # Validate the packaged payload, not only _layout: packaging can omit or mis-version bundled Node runtimes.
+ NODE22_VERSION=$(sed -n 's/^NODE22_VERSION="\([0-9.]*\)"/\1/p' Misc/externals.sh)
+ test -x package_test/externals/node22/bin/node
+ test ! -e package_test/externals/node20
+ test ! -e package_test/externals/node24
# Use sudo only if the runner user can't reach the Docker daemon directly.
DOCKER=docker
if ! docker info >/dev/null 2>&1; then DOCKER="sudo docker"; fi
$DOCKER run --rm --platform linux/arm/v7 \
-e RUNNER_ALLOW_RUNASROOT=1 \
+ -e EXPECTED_NODE_VERSION="$NODE22_VERSION" \
-v "$(pwd)/package_test:/runner" -w /runner \
arm32v7/ubuntu:noble \
- bash -c 'set -e; apt-get update -qq; DEBIAN_FRONTEND=noninteractive apt-get install -y -qq libicu74 libatomic1 ca-certificates >/dev/null; ./config.sh --version'
+ bash -c 'set -e; apt-get update -qq; DEBIAN_FRONTEND=noninteractive apt-get install -y -qq libicu74 libatomic1 ca-certificates >/dev/null; ./config.sh --version; test "$(./externals/node22/bin/node --version)" = "v$EXPECTED_NODE_VERSION"; test "$(./externals/node22/bin/node -p process.arch)" = arm'
working-directory: src
# Upload runner package tar.gz/zip as artifact
diff --git a/patches/last_processed_commit.txt b/patches/last_processed_commit.txt
index 5255b18e1bf..c9f4a72ea9d 100644
--- a/patches/last_processed_commit.txt
+++ b/patches/last_processed_commit.txt
@@ -1 +1 @@
-01e888680892c6f31f5f9617c606505db6b4cfc7
+1060fd3acfef295496f6843c2ec134fd74a70dc5
diff --git a/patches/runner-main-sdk8-arm.patch b/patches/runner-main-sdk8-arm.patch
index 04a7b3adee3..a2793fbfaef 100644
--- a/patches/runner-main-sdk8-arm.patch
+++ b/patches/runner-main-sdk8-arm.patch
@@ -1,653 +1,368 @@
+diff --git a/src/Directory.Build.props b/src/Directory.Build.props
+index 5613d3c2..d4ab08e5 100644
+--- a/src/Directory.Build.props
++++ b/src/Directory.Build.props
+@@ -41,6 +41,9 @@
+
+ $(DefineConstants);ARM64
+
++
++ $(DefineConstants);ARM
++
+
+
+
diff --git a/src/Misc/externals.sh b/src/Misc/externals.sh
-index b85b6691..04fb6d97 100755
+index ccb4e7c9..6507aba6 100755
--- a/src/Misc/externals.sh
+++ b/src/Misc/externals.sh
-@@ -4,6 +4,9 @@ PRECACHE=$2
-
+@@ -2,6 +2,9 @@
+ PACKAGERUNTIME=$1
+ PRECACHE=$2
+
++# Canonical ARM32-only runtime; kept separate from upstream Node version pins.
++NODE22_VERSION="22.23.4"
++
NODE_URL=https://nodejs.org/dist
NODE_ALPINE_URL=https://github.com/actions/alpine_nodejs/releases/download
-+# node22 is only consumed by the linux-arm (armv7l) package; keep it declared here,
-+# away from the NODE20/NODE24 lines that upstream bumps every release.
-+NODE22_VERSION="22.23.4"
# When you update Node versions you must also create a new release of alpine_nodejs at that updated version.
- # Follow the instructions here: https://github.com/actions/alpine_nodejs?tab=readme-ov-file#getting-started
- NODE20_VERSION="20.20.2"
-@@ -186,4 +189,5 @@ fi
-
- if [[ "$PACKAGERUNTIME" == "linux-arm" ]]; then
- acquireExternalTool "$NODE_URL/v${NODE20_VERSION}/node-v${NODE20_VERSION}-linux-armv7l.tar.gz" node20 fix_nested_dir
-+ acquireExternalTool "$NODE_URL/v${NODE22_VERSION}/node-v${NODE22_VERSION}-linux-armv7l.tar.gz" node22 fix_nested_dir
+@@ -172,3 +175,7 @@ fi
+ if [[ "$PACKAGERUNTIME" == "linux-arm64" ]]; then
+ acquireExternalTool "$NODE_URL/v${NODE24_VERSION}/node-v${NODE24_VERSION}-linux-arm64.tar.gz" node24 fix_nested_dir
fi
++
++if [[ "$PACKAGERUNTIME" == "linux-arm" ]]; then
++ acquireExternalTool "$NODE_URL/v${NODE22_VERSION}/node-v${NODE22_VERSION}-linux-armv7l.tar.gz" node22 fix_nested_dir
++fi
diff --git a/src/Misc/layoutbin/runsvc.sh b/src/Misc/layoutbin/runsvc.sh
-index 35e44227..d11118f7 100755
+index 35e44227..e15e9478 100755
--- a/src/Misc/layoutbin/runsvc.sh
+++ b/src/Misc/layoutbin/runsvc.sh
-@@ -10,7 +10,7 @@ if [ -f ".path" ]; then
- echo ".path=${PATH}"
+@@ -11,6 +11,9 @@ if [ -f ".path" ]; then
fi
-
--nodever="node24"
-+nodever="node22"
-
+
+ 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/Misc/layoutbin/update.sh.template b/src/Misc/layoutbin/update.sh.template
-index 06e804ec..87cbf990 100755
---- a/src/Misc/layoutbin/update.sh.template
-+++ b/src/Misc/layoutbin/update.sh.template
-@@ -135,8 +135,8 @@ if [[ "$currentplatform" == 'darwin' && $restartinteractiverunner -eq 0 ]]; the
- then
- # inspect the open file handles to find the node process
- # we can't actually inspect the process using ps because it uses relative paths and doesn't follow symlinks
-- # Try finding node24 first, then fallback to earlier versions if needed
-- nodever="node24"
-+ # linux-arm (armv7l) bundles node22 instead of node24; try it first, then fall back to earlier versions
-+ nodever="node22"
- path=$(lsof -a -g "$procgroup" -F n | grep $nodever/bin/node | grep externals | tail -1 | cut -c2-)
- if [[ $? -ne 0 || -z "$path" ]] # Fallback if RunnerService.js was started with node20
- then
diff --git a/src/Runner.Common/Constants.cs b/src/Runner.Common/Constants.cs
-index 3c9a1768..d63bdf18 100644
+index 4d48cc36..93dc2176 100644
--- a/src/Runner.Common/Constants.cs
+++ b/src/Runner.Common/Constants.cs
-@@ -198,6 +198,7 @@ namespace GitHub.Runner.Common
- // Node versions
- public static readonly string Node20 = "node20";
- public static readonly string Node24 = "node24";
-+ public static readonly string Node22 = "node22";
-
- // Environment variables for controlling node version selection
- public static readonly string ForceNode24Variable = "FORCE_JAVASCRIPT_ACTIONS_TO_NODE24";
-@@ -212,6 +213,12 @@ namespace GitHub.Runner.Common
- public static readonly string DeprecateLinuxArm32Flag = "actions_runner_deprecate_linux_arm32";
- public static readonly string KillLinuxArm32Flag = "actions_runner_kill_linux_arm32";
-
-+ // Local, runner-process-only override (NOT server-controlled) allowing an operator
-+ // of a self-hosted ARM32 fleet to explicitly opt out of the service-driven ARM32
-+ // deprecation/kill switch above. Must be set in the runner's own process
-+ // environment; it has no effect on, and is not sent by, the Actions service.
-+ public static readonly string IgnoreArm32KillSwitchVariable = "RUNNER_IGNORE_ARM32_KILL_SWITCH";
-+
- // Blog post URL for Node 20 deprecation
- public static readonly string Node20DeprecationUrl = "https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/";
-
+@@ -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 54b62511..6e3083d8 100644
+index 257a759a..5047627a 100644
--- a/src/Runner.Common/Runner.Common.csproj
+++ b/src/Runner.Common/Runner.Common.csproj
-@@ -1,7 +1,7 @@
+@@ -1,9 +1,9 @@
-
+
- net8.0
+ net9.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;osx-x64;osx-arm64;win-arm64
++ win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64
true
+ NU1701;NU1603;SYSLIB0050;SYSLIB0051
+ $(Version)
diff --git a/src/Runner.Common/Util/NodeUtil.cs b/src/Runner.Common/Util/NodeUtil.cs
-index 7b8055b9..584e654a 100644
+index e33de2e8..a37ac4a8 100644
--- a/src/Runner.Common/Util/NodeUtil.cs
+++ b/src/Runner.Common/Util/NodeUtil.cs
-@@ -39,6 +39,21 @@ namespace GitHub.Runner.Common.Util
- {
- return forcedInternalNodeVersion;
- }
-+
-+ // Upstream Node.js no longer publishes armv7l (32-bit ARM) builds for Node 24+,
-+ // and this fork's Linux ARM32 externals bundle node22 instead of node24 (see
-+ // externals.sh and NodeUtil.CheckNodeVersionForLinuxArm32). Internal runner
-+ // tooling that resolves its own node binary via this method -- hashFiles(),
-+ // the macOS SIP re-invoker, .js-shell steps, and the runner's own self-checks --
-+ // must independently account for that, since none of them go through the
-+ // per-action node-version resolution in HandlerFactory/CheckNodeVersionForLinuxArm32.
-+ bool isArm32Linux = Constants.Runner.PlatformArchitecture.Equals(Constants.Architecture.Arm) &&
-+ Constants.Runner.Platform.Equals(Constants.OSPlatform.Linux);
-+ if (isArm32Linux)
-+ {
-+ return Constants.Runner.NodeMigration.Node22;
-+ }
-+
- return _defaultNodeVersion;
- }
- ///
-@@ -128,6 +143,19 @@ namespace GitHub.Runner.Common.Util
- return (preferredVersion, null);
- }
-
-+ // This fork permanently opts out of the Actions service's ARM32 deprecation/kill
-+ // switch by default -- we maintain our own armhf fleet and continue supporting
-+ // it on node22 regardless of what the service announces (see legacy fallback
-+ // below). The opt-out can be explicitly reversed, e.g. for debugging/testing
-+ // against the real upstream behavior, by setting this runner's own process
-+ // environment variable to "false" -- it is never read from workflow-level
-+ // variables or the Actions service.
-+ if (IsArm32KillSwitchOverrideEnabled())
-+ {
-+ killArm32 = false;
-+ deprecateArm32 = false;
-+ }
-+
- // ARM32 kill switch: runner should no longer work on this platform
- if (killArm32)
- {
-@@ -144,7 +172,7 @@ namespace GitHub.Runner.Common.Util
-
- if (string.Equals(preferredVersion, Constants.Runner.NodeMigration.Node24, StringComparison.OrdinalIgnoreCase))
- {
-- return (Constants.Runner.NodeMigration.Node20, deprecationWarning);
-+ return (Constants.Runner.NodeMigration.Node22, deprecationWarning);
- }
-
- return (preferredVersion, deprecationWarning);
-@@ -153,7 +181,7 @@ namespace GitHub.Runner.Common.Util
- // Legacy behavior: fall back to node20 if node24 was requested on ARM32
- if (string.Equals(preferredVersion, Constants.Runner.NodeMigration.Node24, StringComparison.OrdinalIgnoreCase))
- {
-- return (Constants.Runner.NodeMigration.Node20, "Node 24 is not supported on Linux ARM32 platforms. Falling back to Node 20.");
-+ return (Constants.Runner.NodeMigration.Node22, "Node 24 is not supported on Linux ARM32 platforms. Falling back to Node 22.");
- }
-
- return (preferredVersion, null);
-@@ -194,5 +222,24 @@ namespace GitHub.Runner.Common.Util
-
- return info;
+@@ -4,11 +4,18 @@ namespace GitHub.Runner.Common.Util
+ {
+ public static class NodeUtil
+ {
+- public static readonly ReadOnlyCollection BuiltInNodeVersions = new(new[] { "node24" });
++ public static readonly ReadOnlyCollection BuiltInNodeVersions =
++ new(Constants.Runner.PlatformArchitecture == Constants.Architecture.Arm &&
++ Constants.Runner.Platform == Constants.OSPlatform.Linux
++ ? new[] { Constants.Runner.Arm32NodeVersion }
++ : new[] { "node24" });
+
+ public static string GetInternalNodeVersion()
+ {
+- return "node24";
++ return Constants.Runner.PlatformArchitecture == Constants.Architecture.Arm &&
++ Constants.Runner.Platform == Constants.OSPlatform.Linux
++ ? Constants.Runner.Arm32NodeVersion
++ : "node24";
}
-+
-+ ///
-+ /// Checks the runner process environment for the local ARM32 kill-switch override.
-+ /// Defaults to true (enabled): this fork permanently opts out of the
-+ /// service-driven ARM32 deprecation/kill switch unless an operator explicitly sets
-+ /// this runner's own process environment variable to "false" to opt back in. This is
-+ /// intentionally only read from the runner's own process environment (never from
-+ /// workflow-level variables or the Actions service), since reversing the opt-out is
-+ /// meant to be a deliberate decision made by whoever operates the self-hosted ARM32
-+ /// fleet. Exposed publicly so callers that independently read/reuse the
-+ /// deprecateArm32/killArm32 flags for their own purposes (e.g. deprecation-annotation
-+ /// tracking) can also honor it, not just the kill/deprecation logic inside this function.
-+ ///
-+ public static bool IsArm32KillSwitchOverrideEnabled()
-+ {
-+ return StringUtil.ConvertToBoolean(
-+ Environment.GetEnvironmentVariable(Constants.Runner.NodeMigration.IgnoreArm32KillSwitchVariable),
-+ defaultValue: true);
-+ }
}
}
diff --git a/src/Runner.Listener/Runner.Listener.csproj b/src/Runner.Listener/Runner.Listener.csproj
-index b5325000..7244b10f 100644
+index 08adb988..5c2c2d11 100644
--- a/src/Runner.Listener/Runner.Listener.csproj
+++ b/src/Runner.Listener/Runner.Listener.csproj
-@@ -1,7 +1,7 @@
+@@ -1,9 +1,9 @@
-
+
- net8.0
+ net9.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;osx-x64;osx-arm64;win-arm64
++ 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 81a8d2e4..49272a23 100644
+index 51ee3ce4..49272a23 100644
--- a/src/Runner.PluginHost/Runner.PluginHost.csproj
+++ b/src/Runner.PluginHost/Runner.PluginHost.csproj
-@@ -1,7 +1,7 @@
+@@ -1,9 +1,9 @@
-
+
- net8.0
+ net9.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;osx-x64;osx-arm64;win-arm64
++ 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 a786cf1c..60d7662b 100644
+index 1ddd57eb..60d7662b 100644
--- a/src/Runner.Plugins/Runner.Plugins.csproj
+++ b/src/Runner.Plugins/Runner.Plugins.csproj
-@@ -1,7 +1,7 @@
+@@ -1,9 +1,9 @@
-
+
- net8.0
+ net9.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;osx-x64;osx-arm64;win-arm64
++ 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 70c98913..5c52b338 100644
+index 278bb064..a27289f6 100644
--- a/src/Runner.Sdk/Runner.Sdk.csproj
+++ b/src/Runner.Sdk/Runner.Sdk.csproj
-@@ -1,7 +1,7 @@
+@@ -1,9 +1,9 @@
-
+
- net8.0
+ net9.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;osx-x64;osx-arm64;win-arm64
++ 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/Handlers/HandlerFactory.cs b/src/Runner.Worker/Handlers/HandlerFactory.cs
-index 8044f091..d1f341ed 100644
+index 88818c5f..a60ffb41 100644
--- a/src/Runner.Worker/Handlers/HandlerFactory.cs
+++ b/src/Runner.Worker/Handlers/HandlerFactory.cs
-@@ -33,6 +33,12 @@ namespace GitHub.Runner.Worker.Handlers
- string.Equals(finalNodeVersion, Constants.Runner.NodeMigration.Node20, StringComparison.OrdinalIgnoreCase);
- }
-
-+ internal static bool ShouldTrackAsDeprecatedNode20(bool warnOnNode20, string finalNodeVersion)
-+ {
-+ return warnOnNode20 &&
-+ string.Equals(finalNodeVersion, Constants.Runner.NodeMigration.Node20, StringComparison.OrdinalIgnoreCase);
-+ }
-+
- public IHandler Create(
- IExecutionContext executionContext,
- Pipelines.ActionStepDefinitionReference action,
-@@ -80,6 +86,20 @@ namespace GitHub.Runner.Worker.Handlers
- string node20RemovalDate = executionContext.Global.Variables?.Get(Constants.Runner.NodeMigration.Node20RemovalDateVariable);
- string actionName = GetActionName(action);
-
-+ // Local operator override: also short-circuit here, not just inside
-+ // NodeUtil.CheckNodeVersionForLinuxArm32, since deprecateArm32 is reused below
-+ // for ShouldTrackAsArm32Node20() deprecation-annotation tracking independently
-+ // of that call's return value. Gated to ARM32 Linux only (matching NodeUtil's
-+ // own gate) since the override defaults to enabled -- without this gate it
-+ // would also suppress deprecation tracking on every other architecture.
-+ bool isArm32Linux = Constants.Runner.PlatformArchitecture.Equals(Constants.Architecture.Arm) &&
-+ Constants.Runner.Platform.Equals(Constants.OSPlatform.Linux);
-+ if (isArm32Linux && NodeUtil.IsArm32KillSwitchOverrideEnabled())
-+ {
-+ deprecateArm32 = false;
-+ killArm32 = false;
-+ }
-+
- // Check if node20 was explicitly specified in the action
- // We don't modify if node24 was explicitly specified
- if (string.Equals(nodeData.NodeVersion, Constants.Runner.NodeMigration.Node20, StringComparison.InvariantCultureIgnoreCase))
-@@ -122,7 +142,7 @@ namespace GitHub.Runner.Worker.Handlers
- // Action is on node20 because ARM32 can't run node24
- executionContext.Global.Arm32Node20Actions?.Add(actionName);
- }
-- else if (warnOnNode20)
-+ else if (ShouldTrackAsDeprecatedNode20(warnOnNode20, finalNodeVersion))
- {
- // Action is still running on node20 (general case)
- executionContext.Global.DeprecatedNode20Actions?.Add(actionName);
+@@ -55,8 +55,11 @@ namespace GitHub.Runner.Worker.Handlers
+ handler = HostContext.CreateService();
+ 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
-index 2ed4f423..828bceb1 100644
+index 33e2b2ff..44528d75 100644
--- a/src/Runner.Worker/Runner.Worker.csproj
+++ b/src/Runner.Worker/Runner.Worker.csproj
-@@ -1,7 +1,7 @@
+@@ -1,9 +1,9 @@
-
+
- net8.0
+ net9.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;osx-x64;osx-arm64;win-arm64
++ 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 13a8cf7a..de3c3218 100644
+index c02c7b78..66820c92 100644
--- a/src/Sdk/Sdk.csproj
+++ b/src/Sdk/Sdk.csproj
-@@ -1,7 +1,7 @@
+@@ -1,9 +1,9 @@
-
+
- net8.0
+ net9.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;osx-x64;osx-arm64;win-arm64
++ win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64
+ true
+ NU1701;NU1603;SYSLIB0050;SYSLIB0051
+diff --git a/src/Test/L0/ConstantGenerationL0.cs b/src/Test/L0/ConstantGenerationL0.cs
+index e4dda744..4ff2dbb3 100644
+--- a/src/Test/L0/ConstantGenerationL0.cs
++++ b/src/Test/L0/ConstantGenerationL0.cs
+@@ -18,6 +18,7 @@ namespace GitHub.Runner.Common.Tests
+ "win-x86",
+ "win-arm64",
+ "linux-x64",
++ "linux-arm",
+ "linux-arm64",
+ "osx-x64",
+ "osx-arm64"
diff --git a/src/Test/L0/Util/NodeUtilL0.cs b/src/Test/L0/Util/NodeUtilL0.cs
-index 0a493c73..15a48afd 100644
+index 5e52cf98..aad83ee5 100644
--- a/src/Test/L0/Util/NodeUtilL0.cs
+++ b/src/Test/L0/Util/NodeUtilL0.cs
-@@ -11,10 +11,19 @@ namespace GitHub.Runner.Common.Tests.Util
- [Theory]
+@@ -1,4 +1,4 @@
+-using System;
++using GitHub.Runner.Common;
+ using GitHub.Runner.Common.Util;
+ using Xunit;
+
+@@ -6,36 +6,30 @@ namespace GitHub.Runner.Common.Tests.Util
+ {
+ public class NodeUtilL0
+ {
+- [Theory]
++ [Fact]
[Trait("Level", "L0")]
[Trait("Category", "Common")]
-+#if ARM
-+ // Linux ARM32 bundles node22 (not node24) since upstream Node.js no longer ships
-+ // armv7l builds for Node 24+; GetInternalNodeVersion must default accordingly.
-+ [InlineData(null, "node22")]
-+ [InlineData("node24", "node24")] // Explicit operator override still wins
-+ [InlineData("node20", "node20")]
-+ [InlineData("node16", "node22")] // Unsupported versions fall back to the platform default
-+#else
- [InlineData(null, "node24")]
- [InlineData("node24", "node24")]
- [InlineData("node20", "node20")]
- [InlineData("node16", "node24")] // Unsupported versions are ignored
-+#endif
- public void TestInternalNodeVersion(string forcedVersion, string expectedVersion)
+- [InlineData(null)]
+- [InlineData("node24")]
+- [InlineData("node20")]
+- [InlineData("node16")]
+- [InlineData("invalid")]
+- public void InternalNodeVersionIsAlwaysNode24(string forcedVersion)
++ public void InternalNodeVersionUsesThePlatformBundle()
{
- try
-diff --git a/src/Test/L0/Worker/HandlerFactoryL0.cs b/src/Test/L0/Worker/HandlerFactoryL0.cs
-index e8ecdef3..e7e37048 100644
---- a/src/Test/L0/Worker/HandlerFactoryL0.cs
-+++ b/src/Test/L0/Worker/HandlerFactoryL0.cs
-@@ -625,6 +625,88 @@ namespace GitHub.Runner.Common.Tests.Worker
- }
+- const string variable = "ACTIONS_RUNNER_FORCED_INTERNAL_NODE_VERSION";
+- var originalValue = Environment.GetEnvironmentVariable(variable);
+- try
+- {
+- Environment.SetEnvironmentVariable(variable, forcedVersion);
++ var expected = Constants.Runner.PlatformArchitecture == Constants.Architecture.Arm &&
++ Constants.Runner.Platform == Constants.OSPlatform.Linux
++ ? Constants.Runner.Arm32NodeVersion
++ : "node24";
+
+- Assert.Equal("node24", NodeUtil.GetInternalNodeVersion());
+- }
+- finally
+- {
+- Environment.SetEnvironmentVariable(variable, originalValue);
+- }
++ Assert.Equal(expected, NodeUtil.GetInternalNodeVersion());
}
-
-+ [Fact]
-+ [Trait("Level", "L0")]
-+ [Trait("Category", "Worker")]
-+ public void ExplicitNode24Action_DeprecateAndKillArm32Flags_IgnoredWhenLocalOverrideEnabled()
-+ {
-+ // Regression test: verifies the RUNNER_IGNORE_ARM32_KILL_SWITCH override not only
-+ // prevents the kill switch from failing the step, but also suppresses the separate
-+ // Arm32Node20Actions tracking in HandlerFactory.Create -- otherwise FinalizeJob would
-+ // still emit a stale "Linux ARM32 runners are deprecated" annotation even though the
-+ // operator explicitly opted out.
-+ string overrideVariable = Constants.Runner.NodeMigration.IgnoreArm32KillSwitchVariable;
-+ string originalValue = Environment.GetEnvironmentVariable(overrideVariable);
-+
-+ try
-+ {
-+ Environment.SetEnvironmentVariable(overrideVariable, "true");
-+
-+ using (TestHostContext hc = CreateTestContext())
-+ {
-+ // Arrange.
-+ var hf = new HandlerFactory();
-+ hf.Initialize(hc);
-+
-+ var variables = new Dictionary
-+ {
-+ { Constants.Runner.NodeMigration.DeprecateLinuxArm32Flag, new VariableValue("true") },
-+ { Constants.Runner.NodeMigration.KillLinuxArm32Flag, new VariableValue("true") }
-+ };
-+ Variables serverVariables = new(hc, variables);
-+ var arm32Actions = new HashSet(StringComparer.OrdinalIgnoreCase);
-+
-+ _ec.Setup(x => x.Global).Returns(new GlobalContext()
-+ {
-+ Variables = serverVariables,
-+ EnvironmentVariables = new Dictionary(),
-+ Arm32Node20Actions = arm32Actions
-+ });
-+
-+ var actionRef = new RepositoryPathReference
-+ {
-+ Name = "actions/checkout",
-+ Ref = "v5"
-+ };
-+
-+ // Act - action explicitly declares node24
-+ var data = new NodeJSActionExecutionData();
-+ data.NodeVersion = "node24";
-+ var handler = hf.Create(
-+ _ec.Object,
-+ actionRef,
-+ new Mock().Object,
-+ data,
-+ new Dictionary(),
-+ new Dictionary(),
-+ new Variables(hc, new Dictionary()),
-+ "",
-+ new List()
-+ ) as INodeScriptActionHandler;
-+
-+ bool isArm32Linux = System.Runtime.InteropServices.RuntimeInformation.ProcessArchitecture == System.Runtime.InteropServices.Architecture.Arm &&
-+ System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Linux);
-+
-+ if (isArm32Linux)
-+ {
-+ // Kill switch bypassed: falls back to node22 (legacy target, node20
-+ // is EOL), and is NOT tracked as a deprecated ARM32 action.
-+ Assert.Equal("node22", handler.Data.NodeVersion);
-+ Assert.Empty(arm32Actions);
-+ }
-+ else
-+ {
-+ Assert.Equal("node24", handler.Data.NodeVersion);
-+ Assert.Empty(arm32Actions);
-+ }
-+ }
-+ }
-+ finally
-+ {
-+ Environment.SetEnvironmentVariable(overrideVariable, originalValue);
-+ }
-+ }
-+
+
[Fact]
[Trait("Level", "L0")]
- [Trait("Category", "Worker")]
-@@ -869,5 +951,27 @@ namespace GitHub.Runner.Common.Tests.Worker
-
- Assert.Equal(expected, actual);
- }
-+
-+ [Theory]
-+ [Trait("Level", "L0")]
-+ [Trait("Category", "Worker")]
-+ [InlineData(true, "node20", true)]
-+ [InlineData(true, "node22", false)]
-+ [InlineData(true, "node24", false)]
-+ [InlineData(false, "node20", false)]
-+ public void ShouldTrackAsDeprecatedNode20_OnlyTracksNode20(
-+ bool warnOnNode20,
-+ string finalNodeVersion,
-+ bool expected)
-+ {
-+ // On Linux ARM32, node24-targeted actions resolve to node22 (not node20).
-+ // The deprecated-node20 annotation must only apply to actions actually
-+ // running on node20, otherwise node22-executed actions are mislabeled.
-+ bool actual = HandlerFactory.ShouldTrackAsDeprecatedNode20(
-+ warnOnNode20,
-+ finalNodeVersion);
-+
-+ Assert.Equal(expected, actual);
-+ }
- }
- }
-diff --git a/src/Test/L0/Worker/StepHostNodeVersionL0.cs b/src/Test/L0/Worker/StepHostNodeVersionL0.cs
-index 1c626c5d..0e623335 100644
---- a/src/Test/L0/Worker/StepHostNodeVersionL0.cs
-+++ b/src/Test/L0/Worker/StepHostNodeVersionL0.cs
-@@ -7,15 +7,28 @@ using Xunit;
-
- namespace GitHub.Runner.Common.Tests.Worker
- {
-- public sealed class StepHostNodeVersionL0
-+ public sealed class StepHostNodeVersionL0 : IDisposable
- {
- private Mock _ec;
- private DefaultStepHost _defaultStepHost;
-+ private readonly string _originalKillSwitchOverride;
-
- public StepHostNodeVersionL0()
+ [Trait("Category", "Common")]
+- public void OnlyNode24IsBundled()
++ public void BuiltInNodeVersionsMatchThePlatformBundle()
{
- _ec = new Mock();
- _defaultStepHost = new DefaultStepHost();
-+
-+ // The ARM32 kill-switch override defaults to enabled (see
-+ // NodeUtil.IsArm32KillSwitchOverrideEnabled). Explicitly disable it here so tests
-+ // below that pass deprecateArm32/killArm32 directly continue to exercise the
-+ // underlying kill/deprecation logic unless a test overrides this itself.
-+ _originalKillSwitchOverride = Environment.GetEnvironmentVariable(Constants.Runner.NodeMigration.IgnoreArm32KillSwitchVariable);
-+ Environment.SetEnvironmentVariable(Constants.Runner.NodeMigration.IgnoreArm32KillSwitchVariable, "false");
-+ }
+- Assert.Equal(new[] { "node24" }, NodeUtil.BuiltInNodeVersions);
++ var expected = Constants.Runner.PlatformArchitecture == Constants.Architecture.Arm &&
++ Constants.Runner.Platform == Constants.OSPlatform.Linux
++ ? new[] { Constants.Runner.Arm32NodeVersion }
++ : new[] { "node24" };
+
-+ public void Dispose()
-+ {
-+ Environment.SetEnvironmentVariable(Constants.Runner.NodeMigration.IgnoreArm32KillSwitchVariable, _originalKillSwitchOverride);
- }
-
- [Fact]
-@@ -34,8 +47,8 @@ namespace GitHub.Runner.Common.Tests.Worker
-
- if (isArm32 && isLinux)
- {
-- // Should downgrade to node20 on ARM32 Linux
-- Assert.Equal("node20", nodeVersion);
-+ // Should use node22 on ARM32 Linux (node24 is unavailable)
-+ Assert.Equal("node22", nodeVersion);
- Assert.NotNull(warningMessage);
- Assert.Contains("Node 24 is not supported on Linux ARM32 platforms", warningMessage);
- }
-@@ -74,7 +87,7 @@ namespace GitHub.Runner.Common.Tests.Worker
-
- if (isArm32 && isLinux)
- {
-- Assert.Equal("node20", nodeVersion);
-+ Assert.Equal("node22", nodeVersion);
- Assert.NotNull(warningMessage);
- Assert.Contains("deprecated", warningMessage);
- Assert.Contains("no longer be supported", warningMessage);
-@@ -178,7 +191,7 @@ namespace GitHub.Runner.Common.Tests.Worker
-
- if (isArm32 && isLinux)
- {
-- Assert.Equal("node20", nodeVersion);
-+ Assert.Equal("node22", nodeVersion);
- Assert.NotNull(warningMessage);
- Assert.Contains(customDate, warningMessage);
- Assert.DoesNotContain(Constants.Runner.NodeMigration.Node20RemovalDate, warningMessage);
-@@ -205,7 +218,7 @@ namespace GitHub.Runner.Common.Tests.Worker
-
- if (isArm32 && isLinux)
- {
-- Assert.Equal("node20", nodeVersion);
-+ Assert.Equal("node22", nodeVersion);
- Assert.NotNull(warningMessage);
- Assert.Contains(Constants.Runner.NodeMigration.Node20RemovalDate, warningMessage);
- }
-@@ -215,5 +228,98 @@ namespace GitHub.Runner.Common.Tests.Worker
- Assert.Null(warningMessage);
- }
++ Assert.Equal(expected, NodeUtil.BuiltInNodeVersions);
}
-+
-+ [Fact]
-+ [Trait("Level", "L0")]
-+ [Trait("Category", "Worker")]
-+ public void CheckNodeVersionForArm32_KillFlagIgnoredByDefault()
-+ {
-+ string preferredVersion = "node24";
-+ string overrideVariable = Constants.Runner.NodeMigration.IgnoreArm32KillSwitchVariable;
-+
-+ // Simulate a fresh runner process where the operator hasn't set the override
-+ // variable at all -- it should still default to enabled.
-+ Environment.SetEnvironmentVariable(overrideVariable, null);
-+
-+ var (nodeVersion, warningMessage) = Common.Util.NodeUtil.CheckNodeVersionForLinuxArm32(preferredVersion, killArm32: true);
-+
-+ bool isArm32 = RuntimeInformation.ProcessArchitecture == Architecture.Arm ||
-+ Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE") == "ARM";
-+ bool isLinux = RuntimeInformation.IsOSPlatform(OSPlatform.Linux);
-+
-+ if (isArm32 && isLinux)
-+ {
-+ // Kill switch bypassed by default: falls back to node22 (node24->node20 target is EOL)
-+ Assert.Equal("node22", nodeVersion);
-+ Assert.NotNull(warningMessage);
-+ Assert.Contains("Node 24 is not supported on Linux ARM32 platforms", warningMessage);
-+ }
-+ else
-+ {
-+ Assert.Equal("node24", nodeVersion);
-+ Assert.Null(warningMessage);
-+ }
-+ }
-+
-+ [Fact]
-+ [Trait("Level", "L0")]
-+ [Trait("Category", "Worker")]
-+ public void CheckNodeVersionForArm32_DeprecationFlagIgnoredByDefault()
-+ {
-+ string preferredVersion = "node24";
-+ string overrideVariable = Constants.Runner.NodeMigration.IgnoreArm32KillSwitchVariable;
-+
-+ Environment.SetEnvironmentVariable(overrideVariable, null);
-+
-+ var (nodeVersion, warningMessage) = Common.Util.NodeUtil.CheckNodeVersionForLinuxArm32(preferredVersion, deprecateArm32: true);
-+
-+ bool isArm32 = RuntimeInformation.ProcessArchitecture == Architecture.Arm ||
-+ Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE") == "ARM";
-+ bool isLinux = RuntimeInformation.IsOSPlatform(OSPlatform.Linux);
-+
-+ if (isArm32 && isLinux)
-+ {
-+ // No deprecation warning by default; still falls back to node22 (legacy target)
-+ Assert.Equal("node22", nodeVersion);
-+ Assert.NotNull(warningMessage);
-+ Assert.DoesNotContain("deprecated", warningMessage);
-+ Assert.Contains("Node 24 is not supported on Linux ARM32 platforms", warningMessage);
-+ }
-+ else
-+ {
-+ Assert.Equal("node24", nodeVersion);
-+ Assert.Null(warningMessage);
-+ }
-+ }
-+
-+ [Fact]
-+ [Trait("Level", "L0")]
-+ [Trait("Category", "Worker")]
-+ public void CheckNodeVersionForArm32_KillSwitchCanBeExplicitlyReenabled()
-+ {
-+ string preferredVersion = "node24";
-+ string overrideVariable = Constants.Runner.NodeMigration.IgnoreArm32KillSwitchVariable;
-+
-+ // Operator explicitly opts back into the service-driven kill switch.
-+ Environment.SetEnvironmentVariable(overrideVariable, "false");
-+
-+ var (nodeVersion, warningMessage) = Common.Util.NodeUtil.CheckNodeVersionForLinuxArm32(preferredVersion, killArm32: true);
-+
-+ bool isArm32 = RuntimeInformation.ProcessArchitecture == Architecture.Arm ||
-+ Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE") == "ARM";
-+ bool isLinux = RuntimeInformation.IsOSPlatform(OSPlatform.Linux);
-+
-+ if (isArm32 && isLinux)
-+ {
-+ Assert.Null(nodeVersion);
-+ Assert.NotNull(warningMessage);
-+ Assert.Contains("no longer supported", warningMessage);
-+ }
-+ else
-+ {
-+ Assert.Equal("node24", nodeVersion);
-+ Assert.Null(warningMessage);
-+ }
-+ }
}
}
+diff --git a/src/Test/L0/Worker/HandlerFactoryL0.cs b/src/Test/L0/Worker/HandlerFactoryL0.cs
+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);
++ var expectedNodeVersion = Constants.Runner.PlatformArchitecture == Constants.Architecture.Arm &&
++ Constants.Runner.Platform == Constants.OSPlatform.Linux
++ ? Constants.Runner.Arm32NodeVersion
++ : "node24";
++ Assert.Equal(expectedNodeVersion, handler.Data.NodeVersion);
+ Assert.Same(action, handler.Action);
+ Assert.Same(stepHost, handler.StepHost);
+ Assert.Same(environment, handler.Environment);
diff --git a/src/Test/Test.csproj b/src/Test/Test.csproj
-index 5ad39f3c..5cbc9c0d 100644
+index e4ce9293..d70b95ac 100644
--- a/src/Test/Test.csproj
+++ b/src/Test/Test.csproj
-@@ -1,6 +1,6 @@
+@@ -1,7 +1,7 @@
- net8.0
+- win-x64;win-x86;linux-x64;linux-arm64;osx-x64;osx-arm64;win-arm64
+ net9.0
- 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
true
NU1701;NU1603;NU1603;xUnit2013;SYSLIB0050;SYSLIB0051
+
diff --git a/src/dev.sh b/src/dev.sh
-index e4e8d10d..e12b1f2c 100755
+index 6eb6df20..582f7b57 100755
--- a/src/dev.sh
+++ b/src/dev.sh
@@ -17,7 +17,7 @@ LAYOUT_DIR="$SCRIPT_DIR/../_layout"
DOWNLOAD_DIR="$SCRIPT_DIR/../_downloads/netcore2x"
PACKAGE_DIR="$SCRIPT_DIR/../_package"
DOTNETSDK_ROOT="$SCRIPT_DIR/../_dotnetsdk"
--DOTNETSDK_VERSION="8.0.427"
+-DOTNETSDK_VERSION="8.0.428"
+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)
+ case $CPU_NAME in
+- armv7l)
+- echo "Failed: Linux ARM32 runners are no longer supported." >&2
+- exit 1
+- ;;
++ armv7l) RUNTIME_ID="linux-arm";;
+ aarch64) RUNTIME_ID="linux-arm64";;
+ esac
+ fi
+@@ -83,7 +80,7 @@ if [[ "$CURRENT_PLATFORM" == 'windows' ]]; then
+ exit 1
+ fi
+ elif [[ "$CURRENT_PLATFORM" == 'linux' ]]; then
+- if [[ ("$RUNTIME_ID" != 'linux-x64') && ("$RUNTIME_ID" != 'linux-x86') && ("$RUNTIME_ID" != 'linux-arm64') ]]; then
++ if [[ ("$RUNTIME_ID" != 'linux-x64') && ("$RUNTIME_ID" != 'linux-x86') && ("$RUNTIME_ID" != 'linux-arm64') && ("$RUNTIME_ID" != 'linux-arm') ]]; then
+ echo "Failed: Can't build $RUNTIME_ID package $CURRENT_PLATFORM" >&2
+ exit 1
+ fi
diff --git a/src/global.json b/src/global.json
-index 63e95af8..70cfe5c2 100644
+index 67f951ec..70cfe5c2 100644
--- a/src/global.json
+++ b/src/global.json
@@ -1,5 +1,5 @@
{
"sdk": {
-- "version": "8.0.427"
+- "version": "8.0.428"
+ "version": "9.0.318"
}
}
-# From upstream commit: 01e888680892c6f31f5f9617c606505db6b4cfc7
+# From upstream commit: 1060fd3acfef295496f6843c2ec134fd74a70dc5
diff --git a/patches/runner-main-sdk8-ppc64le.patch b/patches/runner-main-sdk8-ppc64le.patch
index e86faab4dad..82c346e4fe7 100644
--- a/patches/runner-main-sdk8-ppc64le.patch
+++ b/patches/runner-main-sdk8-ppc64le.patch
@@ -1,8 +1,8 @@
diff --git a/src/Directory.Build.props b/src/Directory.Build.props
-index 9c069b12..d26b0dc2 100644
+index 5613d3c2..b78cdb6d 100644
--- a/src/Directory.Build.props
+++ b/src/Directory.Build.props
-@@ -44,6 +44,12 @@
+@@ -41,6 +41,12 @@
$(DefineConstants);ARM64
@@ -12,36 +12,32 @@ index 9c069b12..d26b0dc2 100644
+
+ $(DefineConstants);S390X
+
-
+
diff --git a/src/Misc/externals.sh b/src/Misc/externals.sh
-index b85b6691..82cb62f2 100755
+index ccb4e7c9..493a603b 100755
--- a/src/Misc/externals.sh
+++ b/src/Misc/externals.sh
-@@ -187,3 +187,13 @@ fi
- if [[ "$PACKAGERUNTIME" == "linux-arm" ]]; then
- acquireExternalTool "$NODE_URL/v${NODE20_VERSION}/node-v${NODE20_VERSION}-linux-armv7l.tar.gz" node20 fix_nested_dir
+@@ -172,3 +172,10 @@ fi
+ if [[ "$PACKAGERUNTIME" == "linux-arm64" ]]; then
+ acquireExternalTool "$NODE_URL/v${NODE24_VERSION}/node-v${NODE24_VERSION}-linux-arm64.tar.gz" node24 fix_nested_dir
fi
-+
+if [[ "$PACKAGERUNTIME" == "linux-ppc64le" ]]; then
-+ acquireExternalTool "$NODE_URL/v${NODE20_VERSION}/node-v${NODE20_VERSION}-linux-ppc64le.tar.gz" node20 fix_nested_dir
+ acquireExternalTool "$NODE_URL/v${NODE24_VERSION}/node-v${NODE24_VERSION}-linux-ppc64le.tar.gz" node24 fix_nested_dir
+fi
+
+if [[ "$PACKAGERUNTIME" == "linux-s390x" ]]; then
-+ acquireExternalTool "$NODE_URL/v${NODE20_VERSION}/node-v${NODE20_VERSION}-linux-s390x.tar.gz" node20 fix_nested_dir
+ acquireExternalTool "$NODE_URL/v${NODE24_VERSION}/node-v${NODE24_VERSION}-linux-s390x.tar.gz" node24 fix_nested_dir
+fi
-\ No newline at end of file
diff --git a/src/Misc/layoutroot/config.sh b/src/Misc/layoutroot/config.sh
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"
@@ -57,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"
@@ -70,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"
@@ -83,10 +79,10 @@ 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 3c9a1768..44083c86 100644
+index 4d48cc36..88933e22 100644
--- a/src/Runner.Common/Constants.cs
+++ b/src/Runner.Common/Constants.cs
@@ -59,7 +59,9 @@ namespace GitHub.Runner.Common
@@ -98,7 +94,7 @@ index 3c9a1768..44083c86 100644
+ Ppc64le,
+ S390x
}
-
+
public static class Runner
@@ -82,6 +84,10 @@ namespace GitHub.Runner.Common
public static readonly Architecture PlatformArchitecture = Architecture.Arm;
@@ -126,26 +122,78 @@ index 97273a1a..78f78701 100644
default:
throw new NotSupportedException(); // Should never reach here.
}
-diff --git a/src/Sdk/Sdk.csproj b/src/Sdk/Sdk.csproj
-index 13a8cf7a..c1a147dd 100644
---- a/src/Sdk/Sdk.csproj
-+++ b/src/Sdk/Sdk.csproj
-@@ -4,7 +4,7 @@
- net8.0
- Library
- win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64
--
-+ true
- true
- NU1701;NU1603;SYSLIB0050;SYSLIB0051
- $(Version)
+diff --git a/src/Runner.Listener/Runner.Listener.csproj b/src/Runner.Listener/Runner.Listener.csproj
+index 08adb988..23ac7217 100644
+--- a/src/Runner.Listener/Runner.Listener.csproj
++++ b/src/Runner.Listener/Runner.Listener.csproj
+@@ -5,6 +5,8 @@
+ Exe
+ win-x64;win-x86;linux-x64;linux-arm64;osx-x64;osx-arm64;win-arm64
+ true
++ false
++ false
+ true
+ NU1701;NU1603;SYSLIB0050;SYSLIB0051
+ $(Version)
+diff --git a/src/Runner.PluginHost/Runner.PluginHost.csproj b/src/Runner.PluginHost/Runner.PluginHost.csproj
+index 51ee3ce4..c8113be6 100644
+--- a/src/Runner.PluginHost/Runner.PluginHost.csproj
++++ b/src/Runner.PluginHost/Runner.PluginHost.csproj
+@@ -5,6 +5,8 @@
+ Exe
+ win-x64;win-x86;linux-x64;linux-arm64;osx-x64;osx-arm64;win-arm64
+ true
++ false
++ false
+ true
+ NU1701;NU1603;SYSLIB0050;SYSLIB0051
+ $(Version)
+diff --git a/src/Runner.Plugins/Runner.Plugins.csproj b/src/Runner.Plugins/Runner.Plugins.csproj
+index 1ddd57eb..a17b29b4 100644
+--- a/src/Runner.Plugins/Runner.Plugins.csproj
++++ b/src/Runner.Plugins/Runner.Plugins.csproj
+@@ -5,6 +5,8 @@
+ Library
+ win-x64;win-x86;linux-x64;linux-arm64;osx-x64;osx-arm64;win-arm64
+ true
++ false
++ false
+ true
+ NU1701;NU1603;SYSLIB0050;SYSLIB0051
+ $(Version)
+diff --git a/src/Runner.Sdk/Runner.Sdk.csproj b/src/Runner.Sdk/Runner.Sdk.csproj
+index 278bb064..d439fdb6 100644
+--- a/src/Runner.Sdk/Runner.Sdk.csproj
++++ b/src/Runner.Sdk/Runner.Sdk.csproj
+@@ -5,6 +5,8 @@
+ Library
+ win-x64;win-x86;linux-x64;linux-arm64;osx-x64;osx-arm64;win-arm64
+ true
++ false
++ false
+ true
+ NU1701;NU1603;SYSLIB0050;SYSLIB0051
+ $(Version)
+diff --git a/src/Runner.Worker/Runner.Worker.csproj b/src/Runner.Worker/Runner.Worker.csproj
+index 33e2b2ff..847ad259 100644
+--- a/src/Runner.Worker/Runner.Worker.csproj
++++ b/src/Runner.Worker/Runner.Worker.csproj
+@@ -5,6 +5,8 @@
+ Exe
+ win-x64;win-x86;linux-x64;linux-arm64;osx-x64;osx-arm64;win-arm64
+ true
++ false
++ false
+ true
+ NU1701;NU1603;SYSLIB0050;SYSLIB0051
+ $(Version)
diff --git a/src/Test/L0/ConstantGenerationL0.cs b/src/Test/L0/ConstantGenerationL0.cs
-index 4ff2dbb3..251be20f 100644
+index e4dda744..0fd0b12b 100644
--- a/src/Test/L0/ConstantGenerationL0.cs
+++ b/src/Test/L0/ConstantGenerationL0.cs
-@@ -20,6 +20,8 @@ namespace GitHub.Runner.Common.Tests
+@@ -19,6 +19,8 @@ namespace GitHub.Runner.Common.Tests
+ "win-arm64",
"linux-x64",
- "linux-arm",
"linux-arm64",
+ "linux-ppc64le",
+ "linux-s390x",
@@ -163,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
@@ -188,85 +236,90 @@ index a91e1127..0a982cac 100644
using System.Collections.Generic;
using System.IO;
diff --git a/src/Test/L0/Worker/StepHostL0.cs b/src/Test/L0/Worker/StepHostL0.cs
-index bac7d41d..d924f65d 100644
+index d2cb1906..f1251017 100644
--- a/src/Test/L0/Worker/StepHostL0.cs
+++ b/src/Test/L0/Worker/StepHostL0.cs
-@@ -31,7 +31,7 @@ namespace GitHub.Runner.Common.Tests.Worker
+@@ -31,6 +31,7 @@ namespace GitHub.Runner.Common.Tests.Worker
return hc;
}
-
--#if OS_LINUX
-+#if OS_LINUX && !PPC64LE && !S390X && !X64
- [Fact]
+
++#if !PPC64LE && !S390X
+ [Theory]
[Trait("Level", "L0")]
[Trait("Category", "Worker")]
+@@ -104,5 +105,6 @@ namespace GitHub.Runner.Common.Tests.Worker
+ Environment.SetEnvironmentVariable(Constants.Hooks.ContainerHooksPath, originalHooksPath);
+ }
+ }
++#endif
+ }
+ }
diff --git a/src/Test/Test.csproj b/src/Test/Test.csproj
-index 5ad39f3c..183f5ab7 100644
+index e4ce9293..19649cf0 100644
--- a/src/Test/Test.csproj
+++ b/src/Test/Test.csproj
-@@ -2,6 +2,10 @@
+@@ -2,6 +2,9 @@
net8.0
- win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64
+ win-x64;win-x86;linux-x64;linux-arm64;osx-x64;osx-arm64;win-arm64
+ true
+ false
+ false
-+ false
true
NU1701;NU1603;NU1603;xUnit2013;SYSLIB0050;SYSLIB0051
diff --git a/src/dev.sh b/src/dev.sh
-index e4e8d10d..073026fe 100755
+index 6eb6df20..db6fcb28 100755
--- a/src/dev.sh
+++ b/src/dev.sh
-@@ -54,6 +54,8 @@ elif [[ "$CURRENT_PLATFORM" == 'linux' ]]; then
- case $CPU_NAME in
- armv7l) RUNTIME_ID="linux-arm";;
+@@ -57,6 +57,8 @@ elif [[ "$CURRENT_PLATFORM" == 'linux' ]]; then
+ exit 1
+ ;;
aarch64) RUNTIME_ID="linux-arm64";;
+ ppc64le) RUNTIME_ID="linux-ppc64le";;
+ s390x) RUNTIME_ID="linux-s390x";;
esac
fi
elif [[ "$CURRENT_PLATFORM" == 'darwin' ]]; then
-@@ -80,7 +82,7 @@ if [[ "$CURRENT_PLATFORM" == 'windows' ]]; then
+@@ -83,7 +85,7 @@ if [[ "$CURRENT_PLATFORM" == 'windows' ]]; then
exit 1
fi
elif [[ "$CURRENT_PLATFORM" == 'linux' ]]; then
-- if [[ ("$RUNTIME_ID" != 'linux-x64') && ("$RUNTIME_ID" != 'linux-x86') && ("$RUNTIME_ID" != 'linux-arm64') && ("$RUNTIME_ID" != 'linux-arm') ]]; then
-+ if [[ ("$RUNTIME_ID" != 'linux-x64') && ("$RUNTIME_ID" != 'linux-x86') && ("$RUNTIME_ID" != 'linux-arm64') && ("$RUNTIME_ID" != 'linux-arm') && ("$RUNTIME_ID" != 'linux-ppc64le') && ("$RUNTIME_ID" != 'linux-s390x') ]]; then
+- if [[ ("$RUNTIME_ID" != 'linux-x64') && ("$RUNTIME_ID" != 'linux-x86') && ("$RUNTIME_ID" != 'linux-arm64') ]]; then
++ if [[ ("$RUNTIME_ID" != 'linux-x64') && ("$RUNTIME_ID" != 'linux-x86') && ("$RUNTIME_ID" != 'linux-arm64') && ("$RUNTIME_ID" != 'linux-ppc64le') && ("$RUNTIME_ID" != 'linux-s390x') ]]; then
echo "Failed: Can't build $RUNTIME_ID package $CURRENT_PLATFORM" >&2
exit 1
fi
-@@ -199,8 +201,7 @@ function package ()
+@@ -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"
-@@ -225,8 +226,10 @@ if [[ (! -d "${DOTNETSDK_INSTALLDIR}") || (! -e "${DOTNETSDK_INSTALLDIR}/.${DOTN
+@@ -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
-index 056a312e..3f9a3679 100644
+index 056a312e..52cb25ca 100644
--- a/src/dir.proj
+++ b/src/dir.proj
@@ -41,8 +41,17 @@
-
+
-
-
@@ -277,11 +330,11 @@ index 056a312e..3f9a3679 100644
+ Perform a non-self-contained publish using the current runtime identifier instead.
+ In addition, when not using an explicit runtime identifier, the SDK will copy runtime assets from dependent packages;
+ as this would confuse the expected layout, disable that behavior as well. -->
-+ SelfContained=false
++ SelfContained=false
+
+
+
-
-# From upstream commit: 01e888680892c6f31f5f9617c606505db6b4cfc7
+
+# From upstream commit: 1060fd3acfef295496f6843c2ec134fd74a70dc5
diff --git a/patches/runner-main-sdk8-s390x.patch b/patches/runner-main-sdk8-s390x.patch
index e86faab4dad..82c346e4fe7 100644
--- a/patches/runner-main-sdk8-s390x.patch
+++ b/patches/runner-main-sdk8-s390x.patch
@@ -1,8 +1,8 @@
diff --git a/src/Directory.Build.props b/src/Directory.Build.props
-index 9c069b12..d26b0dc2 100644
+index 5613d3c2..b78cdb6d 100644
--- a/src/Directory.Build.props
+++ b/src/Directory.Build.props
-@@ -44,6 +44,12 @@
+@@ -41,6 +41,12 @@
$(DefineConstants);ARM64
@@ -12,36 +12,32 @@ index 9c069b12..d26b0dc2 100644
+
+ $(DefineConstants);S390X
+
-
+
diff --git a/src/Misc/externals.sh b/src/Misc/externals.sh
-index b85b6691..82cb62f2 100755
+index ccb4e7c9..493a603b 100755
--- a/src/Misc/externals.sh
+++ b/src/Misc/externals.sh
-@@ -187,3 +187,13 @@ fi
- if [[ "$PACKAGERUNTIME" == "linux-arm" ]]; then
- acquireExternalTool "$NODE_URL/v${NODE20_VERSION}/node-v${NODE20_VERSION}-linux-armv7l.tar.gz" node20 fix_nested_dir
+@@ -172,3 +172,10 @@ fi
+ if [[ "$PACKAGERUNTIME" == "linux-arm64" ]]; then
+ acquireExternalTool "$NODE_URL/v${NODE24_VERSION}/node-v${NODE24_VERSION}-linux-arm64.tar.gz" node24 fix_nested_dir
fi
-+
+if [[ "$PACKAGERUNTIME" == "linux-ppc64le" ]]; then
-+ acquireExternalTool "$NODE_URL/v${NODE20_VERSION}/node-v${NODE20_VERSION}-linux-ppc64le.tar.gz" node20 fix_nested_dir
+ acquireExternalTool "$NODE_URL/v${NODE24_VERSION}/node-v${NODE24_VERSION}-linux-ppc64le.tar.gz" node24 fix_nested_dir
+fi
+
+if [[ "$PACKAGERUNTIME" == "linux-s390x" ]]; then
-+ acquireExternalTool "$NODE_URL/v${NODE20_VERSION}/node-v${NODE20_VERSION}-linux-s390x.tar.gz" node20 fix_nested_dir
+ acquireExternalTool "$NODE_URL/v${NODE24_VERSION}/node-v${NODE24_VERSION}-linux-s390x.tar.gz" node24 fix_nested_dir
+fi
-\ No newline at end of file
diff --git a/src/Misc/layoutroot/config.sh b/src/Misc/layoutroot/config.sh
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"
@@ -57,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"
@@ -70,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"
@@ -83,10 +79,10 @@ 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 3c9a1768..44083c86 100644
+index 4d48cc36..88933e22 100644
--- a/src/Runner.Common/Constants.cs
+++ b/src/Runner.Common/Constants.cs
@@ -59,7 +59,9 @@ namespace GitHub.Runner.Common
@@ -98,7 +94,7 @@ index 3c9a1768..44083c86 100644
+ Ppc64le,
+ S390x
}
-
+
public static class Runner
@@ -82,6 +84,10 @@ namespace GitHub.Runner.Common
public static readonly Architecture PlatformArchitecture = Architecture.Arm;
@@ -126,26 +122,78 @@ index 97273a1a..78f78701 100644
default:
throw new NotSupportedException(); // Should never reach here.
}
-diff --git a/src/Sdk/Sdk.csproj b/src/Sdk/Sdk.csproj
-index 13a8cf7a..c1a147dd 100644
---- a/src/Sdk/Sdk.csproj
-+++ b/src/Sdk/Sdk.csproj
-@@ -4,7 +4,7 @@
- net8.0
- Library
- win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64
--
-+ true
- true
- NU1701;NU1603;SYSLIB0050;SYSLIB0051
- $(Version)
+diff --git a/src/Runner.Listener/Runner.Listener.csproj b/src/Runner.Listener/Runner.Listener.csproj
+index 08adb988..23ac7217 100644
+--- a/src/Runner.Listener/Runner.Listener.csproj
++++ b/src/Runner.Listener/Runner.Listener.csproj
+@@ -5,6 +5,8 @@
+ Exe
+ win-x64;win-x86;linux-x64;linux-arm64;osx-x64;osx-arm64;win-arm64
+ true
++ false
++ false
+ true
+ NU1701;NU1603;SYSLIB0050;SYSLIB0051
+ $(Version)
+diff --git a/src/Runner.PluginHost/Runner.PluginHost.csproj b/src/Runner.PluginHost/Runner.PluginHost.csproj
+index 51ee3ce4..c8113be6 100644
+--- a/src/Runner.PluginHost/Runner.PluginHost.csproj
++++ b/src/Runner.PluginHost/Runner.PluginHost.csproj
+@@ -5,6 +5,8 @@
+ Exe
+ win-x64;win-x86;linux-x64;linux-arm64;osx-x64;osx-arm64;win-arm64
+ true
++ false
++ false
+ true
+ NU1701;NU1603;SYSLIB0050;SYSLIB0051
+ $(Version)
+diff --git a/src/Runner.Plugins/Runner.Plugins.csproj b/src/Runner.Plugins/Runner.Plugins.csproj
+index 1ddd57eb..a17b29b4 100644
+--- a/src/Runner.Plugins/Runner.Plugins.csproj
++++ b/src/Runner.Plugins/Runner.Plugins.csproj
+@@ -5,6 +5,8 @@
+ Library
+ win-x64;win-x86;linux-x64;linux-arm64;osx-x64;osx-arm64;win-arm64
+ true
++ false
++ false
+ true
+ NU1701;NU1603;SYSLIB0050;SYSLIB0051
+ $(Version)
+diff --git a/src/Runner.Sdk/Runner.Sdk.csproj b/src/Runner.Sdk/Runner.Sdk.csproj
+index 278bb064..d439fdb6 100644
+--- a/src/Runner.Sdk/Runner.Sdk.csproj
++++ b/src/Runner.Sdk/Runner.Sdk.csproj
+@@ -5,6 +5,8 @@
+ Library
+ win-x64;win-x86;linux-x64;linux-arm64;osx-x64;osx-arm64;win-arm64
+ true
++ false
++ false
+ true
+ NU1701;NU1603;SYSLIB0050;SYSLIB0051
+ $(Version)
+diff --git a/src/Runner.Worker/Runner.Worker.csproj b/src/Runner.Worker/Runner.Worker.csproj
+index 33e2b2ff..847ad259 100644
+--- a/src/Runner.Worker/Runner.Worker.csproj
++++ b/src/Runner.Worker/Runner.Worker.csproj
+@@ -5,6 +5,8 @@
+ Exe
+ win-x64;win-x86;linux-x64;linux-arm64;osx-x64;osx-arm64;win-arm64
+ true
++ false
++ false
+ true
+ NU1701;NU1603;SYSLIB0050;SYSLIB0051
+ $(Version)
diff --git a/src/Test/L0/ConstantGenerationL0.cs b/src/Test/L0/ConstantGenerationL0.cs
-index 4ff2dbb3..251be20f 100644
+index e4dda744..0fd0b12b 100644
--- a/src/Test/L0/ConstantGenerationL0.cs
+++ b/src/Test/L0/ConstantGenerationL0.cs
-@@ -20,6 +20,8 @@ namespace GitHub.Runner.Common.Tests
+@@ -19,6 +19,8 @@ namespace GitHub.Runner.Common.Tests
+ "win-arm64",
"linux-x64",
- "linux-arm",
"linux-arm64",
+ "linux-ppc64le",
+ "linux-s390x",
@@ -163,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
@@ -188,85 +236,90 @@ index a91e1127..0a982cac 100644
using System.Collections.Generic;
using System.IO;
diff --git a/src/Test/L0/Worker/StepHostL0.cs b/src/Test/L0/Worker/StepHostL0.cs
-index bac7d41d..d924f65d 100644
+index d2cb1906..f1251017 100644
--- a/src/Test/L0/Worker/StepHostL0.cs
+++ b/src/Test/L0/Worker/StepHostL0.cs
-@@ -31,7 +31,7 @@ namespace GitHub.Runner.Common.Tests.Worker
+@@ -31,6 +31,7 @@ namespace GitHub.Runner.Common.Tests.Worker
return hc;
}
-
--#if OS_LINUX
-+#if OS_LINUX && !PPC64LE && !S390X && !X64
- [Fact]
+
++#if !PPC64LE && !S390X
+ [Theory]
[Trait("Level", "L0")]
[Trait("Category", "Worker")]
+@@ -104,5 +105,6 @@ namespace GitHub.Runner.Common.Tests.Worker
+ Environment.SetEnvironmentVariable(Constants.Hooks.ContainerHooksPath, originalHooksPath);
+ }
+ }
++#endif
+ }
+ }
diff --git a/src/Test/Test.csproj b/src/Test/Test.csproj
-index 5ad39f3c..183f5ab7 100644
+index e4ce9293..19649cf0 100644
--- a/src/Test/Test.csproj
+++ b/src/Test/Test.csproj
-@@ -2,6 +2,10 @@
+@@ -2,6 +2,9 @@
net8.0
- win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64
+ win-x64;win-x86;linux-x64;linux-arm64;osx-x64;osx-arm64;win-arm64
+ true
+ false
+ false
-+ false
true
NU1701;NU1603;NU1603;xUnit2013;SYSLIB0050;SYSLIB0051
diff --git a/src/dev.sh b/src/dev.sh
-index e4e8d10d..073026fe 100755
+index 6eb6df20..db6fcb28 100755
--- a/src/dev.sh
+++ b/src/dev.sh
-@@ -54,6 +54,8 @@ elif [[ "$CURRENT_PLATFORM" == 'linux' ]]; then
- case $CPU_NAME in
- armv7l) RUNTIME_ID="linux-arm";;
+@@ -57,6 +57,8 @@ elif [[ "$CURRENT_PLATFORM" == 'linux' ]]; then
+ exit 1
+ ;;
aarch64) RUNTIME_ID="linux-arm64";;
+ ppc64le) RUNTIME_ID="linux-ppc64le";;
+ s390x) RUNTIME_ID="linux-s390x";;
esac
fi
elif [[ "$CURRENT_PLATFORM" == 'darwin' ]]; then
-@@ -80,7 +82,7 @@ if [[ "$CURRENT_PLATFORM" == 'windows' ]]; then
+@@ -83,7 +85,7 @@ if [[ "$CURRENT_PLATFORM" == 'windows' ]]; then
exit 1
fi
elif [[ "$CURRENT_PLATFORM" == 'linux' ]]; then
-- if [[ ("$RUNTIME_ID" != 'linux-x64') && ("$RUNTIME_ID" != 'linux-x86') && ("$RUNTIME_ID" != 'linux-arm64') && ("$RUNTIME_ID" != 'linux-arm') ]]; then
-+ if [[ ("$RUNTIME_ID" != 'linux-x64') && ("$RUNTIME_ID" != 'linux-x86') && ("$RUNTIME_ID" != 'linux-arm64') && ("$RUNTIME_ID" != 'linux-arm') && ("$RUNTIME_ID" != 'linux-ppc64le') && ("$RUNTIME_ID" != 'linux-s390x') ]]; then
+- if [[ ("$RUNTIME_ID" != 'linux-x64') && ("$RUNTIME_ID" != 'linux-x86') && ("$RUNTIME_ID" != 'linux-arm64') ]]; then
++ if [[ ("$RUNTIME_ID" != 'linux-x64') && ("$RUNTIME_ID" != 'linux-x86') && ("$RUNTIME_ID" != 'linux-arm64') && ("$RUNTIME_ID" != 'linux-ppc64le') && ("$RUNTIME_ID" != 'linux-s390x') ]]; then
echo "Failed: Can't build $RUNTIME_ID package $CURRENT_PLATFORM" >&2
exit 1
fi
-@@ -199,8 +201,7 @@ function package ()
+@@ -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"
-@@ -225,8 +226,10 @@ if [[ (! -d "${DOTNETSDK_INSTALLDIR}") || (! -e "${DOTNETSDK_INSTALLDIR}/.${DOTN
+@@ -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
-index 056a312e..3f9a3679 100644
+index 056a312e..52cb25ca 100644
--- a/src/dir.proj
+++ b/src/dir.proj
@@ -41,8 +41,17 @@
-
+
-
-
@@ -277,11 +330,11 @@ index 056a312e..3f9a3679 100644
+ Perform a non-self-contained publish using the current runtime identifier instead.
+ In addition, when not using an explicit runtime identifier, the SDK will copy runtime assets from dependent packages;
+ as this would confuse the expected layout, disable that behavior as well. -->
-+ SelfContained=false
++ SelfContained=false
+
+
+
-
-# From upstream commit: 01e888680892c6f31f5f9617c606505db6b4cfc7
+
+# From upstream commit: 1060fd3acfef295496f6843c2ec134fd74a70dc5