From b380c727d69a54f08969ba3b59245dc26bb26f3c Mon Sep 17 00:00:00 2001 From: Nathan Stocks Date: Mon, 31 Aug 2026 09:55:22 -0600 Subject: [PATCH] Install runner at C:\actions-runner so builds don't run in C:\Windows\System32 EC2 Windows user data executes with a working directory of C:\Windows\System32, so a relative mkdir put the runner, its _work tree, and every multi-gigabyte Cargo target directory under a system directory Windows treats specially. An absolute path puts the build tree somewhere ordinary, removing a candidate source of the sporadic sharing violations that fail release builds mid-compile. --- dist/index.js | 2 +- src/aws.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index b6288b3a..6cc377e0 100644 --- a/dist/index.js +++ b/dist/index.js @@ -159686,7 +159686,7 @@ function buildUserDataScript(githubRegistrationToken, label) { } else { return [ '', - 'mkdir actions-runner; cd actions-runner', + 'mkdir C:\\actions-runner; cd C:\\actions-runner', 'echo "${config.input.preRunnerScript}" > pre-runner-script.ps1', '& pre-runner-script.ps1', `Invoke-WebRequest -Uri https://github.com/actions/runner/releases/download/v${runnerVersion}/actions-runner-win-x64-${runnerVersion}.zip -OutFile actions-runner-win-x64-${runnerVersion}.zip`, diff --git a/src/aws.js b/src/aws.js index 44f78f83..ba1ab8db 100644 --- a/src/aws.js +++ b/src/aws.js @@ -26,7 +26,7 @@ function buildUserDataScript(githubRegistrationToken, label) { } else { return [ '', - 'mkdir actions-runner; cd actions-runner', + 'mkdir C:\\actions-runner; cd C:\\actions-runner', 'echo "${config.input.preRunnerScript}" > pre-runner-script.ps1', '& pre-runner-script.ps1', `Invoke-WebRequest -Uri https://github.com/actions/runner/releases/download/v${runnerVersion}/actions-runner-win-x64-${runnerVersion}.zip -OutFile actions-runner-win-x64-${runnerVersion}.zip`,