game-ci / unity-builder

Build Unity projects for different platforms
https://github.com/marketplace/actions/unity-builder
MIT License
822 stars 231 forks source link

Allow 'lack of build target' #620

Open Lordfirespeed opened 6 months ago

Lordfirespeed commented 6 months ago

Context

A project I contribute to is in quite a unique position - it needs to reference UnityEditor assemblies (and some unity package assemblies), and then be built outside of unity. To this end, we use the unity-builder action to get access to the necessary assemblies from GitHub actions. It's a bit frustrating that we have to choose a 'target platform' when we actually don't want to build anything at all.

All we need to do is open a project (to restore packages), copy some files, and close the project again.

Suggested solution

Provide a 'none' build target that uses the base docker images.

davidmfinol commented 5 months ago

For your use case, maybe using the unity-test-runner with 0 tests would make more sense?

Lordfirespeed commented 5 months ago

you know, that's quite the idea. 😅🤣