game-ci / game-ci/unity-builder

Build fails on self-hosted mac runner if unity hub has custom install location

Open
#649 2 comments 0 reactions 0 assignees View on GitHub
bug macOS
Dominant language
TypeScript
Stars
1.1k
Forks
313
Avg merge
1h 39m
Merged PRs (30d)
1

Description

I am running unity-builder on self-hosted mac and my machine doesn't have that much storage space so I added external hard drive and pointed unity hub to install unity editors to that drive which cause unity-builder to fail because it is looking at default install location for unity editor executable.

Is there any work around to this issue, it would be nice to give unity-builder the path of the unity editors folder in the yaml file

- Here it says unity editor is already installed
> Generated version 0.0.13 (no version tags found).
> Using android versionCode 13
> Building locally
> /Applications/Unity Hub.app/Contents/MacOS/Unity Hub -- --headless install --version 2023.2.16f1 --changeset > 7f45223012db --module ios --architecture arm64 --childModules
> 2024-04-25 21:16:12.182 Unity Hub[48832:1330170] WARNING: Secure coding is not enabled for restorable state! Enable > secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
> Error while installing an editor or a module from changeset. Error: Editor already installed in this location.

- And later on the pipeline it says it is not able to find unity editor because unity hub has custom install location
> ###########################
> # Building project #
> ###########################
>
> /Volumes/Mac/gh-runner/_work/_actions/game-ci/unity-builder/v4/dist/platforms/mac/steps/build.sh: line 131: > /Applications/Unity/Hub/Editor/2023.2.16f1/Unity.app/Contents/MacOS/Unity: No such file or directory

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.