-
-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building on self-hosted Windows 10: Failed to run "sh " #389
Comments
Adding |
Thanks for reporting this. Indeed this is not expected to happen on a Windows runner. The windows runner isn't supposed to run |
Same matter as discussed in: |
See my reply: |
It seems there is still a call to |
Seems like this may still be a problem according to this discord thread: https://discord.com/channels/710946343828455455/1088495967067713536 I switched to using a windows self-hosted runner when my GitHub Runner started failing to build because it was running out of memory. I cannot seem to get self-hosted to work as I get this same error. I've tried adding Also I've tried using |
@GitFlip |
Unfortunately I did not get it working yet. |
i have the same problem on windows 11 |
Same Issue here. |
I'm getting this error too with the following configuration (sha points to latest commit on main as of this writing, also tried with jobs:
windows_host:
if: inputs.build_windows
name: Windows
runs-on: [self-hosted, "${{ matrix.platform[0] }}"]
strategy:
fail-fast: false
matrix:
platform:
- [Windows, StandaloneWindows64]
steps:
- uses: actions/checkout@v3
name: Git Checkout + LFS
with:
lfs: true
fetch-depth: 0
clean: false
# - run: |
# "C:\Program Files\Docker\Docker\DockerCli.exe" -SwitchWindowsEngine
# shell: cmd
# name: Switch Docker to Windows Containers
- run: |
IF EXIST ${{github.workspace}}\Assets\Editor\UnityBuilderAction RMDIR /s /q ${{github.workspace}}\Assets\Editor\UnityBuilderAction
shell: cmd
name: Build Script Cleaning
- uses: game-ci/unity-builder@7afabe74da5227a9ecd537f5260b398258c3eb3b
name: Unity build
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_BUILDER_DOCKER_ARGS: "-m 28g --cpus 10 --gpus all"
with:
unityVersion: 2022.3.11f1
targetPlatform: ${{ matrix.platform[1] }}
buildName: Gumshoe
allowDirtyBuild: true
|
The simplest fix is to add git bash's bin directory to your path as it includes an sh executable. Since git is needed for the runners to work regardless this should be a decent workaround |
adding |
Hey!
Bug description
I am trying to set up a build pipeline, and since we have a lot of spare Windows 10 workstations around, I felt it would be a good use for them to be part of a build farm.
Unfortunately, it seems that there is a problem, please review the information below:
OS: Windows 10 64bit
Configuration
Error Log
The text was updated successfully, but these errors were encountered: